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); }
void Start() { _animator = GetComponent <Animator>(); _ddl = GetComponent <DefaultDialogLauncher>(); _controlHint = GameObject.Find("ControlHint").GetComponent <Text>(); }
public void StartDialog(string path, DefaultDialogLauncher caller) { SetCaller(caller); caller.talking = true; StartDialog(path); }
/** * 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; }