예제 #1
0
 public void StopDialog()
 {
     _dialogFrameText.text = "";
     _dialogFrame.SetActive(false);
     _caller.UnstackDialog();
     if (_dialogXML.postAction != null)
     {
         ExecutePostAction(_dialogXML.postAction);
     }
     _dialogXML      = null;
     dialogStarted   = false;
     _caller.talking = false;
     _caller.FinishedDialog();
     _caller = null;
     GameManager.instance.UnstackGameMode(GameModes.DIALOG_MODE);
 }
예제 #2
0
 void Start()
 {
     _animator    = GetComponent <Animator>();
     _ddl         = GetComponent <DefaultDialogLauncher>();
     _controlHint = GameObject.Find("ControlHint").GetComponent <Text>();
 }
예제 #3
0
 public void StartDialog(string path, DefaultDialogLauncher caller)
 {
     SetCaller(caller);
     caller.talking = true;
     StartDialog(path);
 }
예제 #4
0
 /**
  * Privilégier l'utilisation de StartDialog avec Caller. Ceci peut-etre utiliser pour "hacker" postAction mais ce n'est pas conseillé.
  **/
 public void SetCaller(DefaultDialogLauncher caller)
 {
     _caller = caller;
 }