C# Class UIController, Node-Inspector

Inheritance: MonoBehaviour
Mostrar archivo Open project: nicloay/Node-Inspector Class Usage Examples

Public Properties

Property Type Description
ActorName Text
Button1 Button
Button2 Button
Instance UIController
SingleButton Button
Text Text
TimePerCharacter float
UIRoot Canvas

Public Methods

Method Description
CloseDialogue ( ) : void
ShowSingleButton ( string caption, Action onButtonClick ) : void
ShowText ( string actorName, string text, Action onDone ) : void
ShowTwoButtons ( string button1Caption, Action onButton1Click, string button2Caption, Action onButton2Click ) : void
Update ( ) : void

Private Methods

Method Description
ClearAndExecuteOnDoneActionIfNotNull ( ) : void
HideAllButtons ( ) : void
PlayText ( string text ) : IEnumerator
ShowButton ( Button button, string caption, Action onButtonClick ) : void
Start ( ) : void

Method Details

CloseDialogue() public method

public CloseDialogue ( ) : void
return void

ShowSingleButton() public method

public ShowSingleButton ( string caption, Action onButtonClick ) : void
caption string
onButtonClick Action
return void

ShowText() public method

public ShowText ( string actorName, string text, Action onDone ) : void
actorName string
text string
onDone Action
return void

ShowTwoButtons() public method

public ShowTwoButtons ( string button1Caption, Action onButton1Click, string button2Caption, Action onButton2Click ) : void
button1Caption string
onButton1Click Action
button2Caption string
onButton2Click Action
return void

Update() public method

public Update ( ) : void
return void

Property Details

ActorName public_oe property

public Text ActorName
return Text

Button1 public_oe property

public Button Button1
return Button

Button2 public_oe property

public Button Button2
return Button

Instance public_oe static_oe property

public static UIController Instance
return UIController

SingleButton public_oe property

public Button SingleButton
return Button

Text public_oe property

public Text Text
return Text

TimePerCharacter public_oe property

public float TimePerCharacter
return float

UIRoot public_oe property

public Canvas UIRoot
return Canvas