/// <summary> /// Executes a Dialog. /// Called from a FSM action /// </summary> public bool ExecuteDialog(GameManagerScript.GameEventObjDelegate dialogDone, string dialogName, DialogsPackage package) { //Store caller action //this.playDialogAction = action; this.dialogDone = dialogDone; //Start dialog dialogBehaviour.CurrentDialog = package.GetDialogByName(dialogName); dialogBehaviour.StartDialog(); return(true); }
/// <summary> /// Executes a Dialog. /// Called from a FSM action /// </summary> public bool ExecuteDialog(GameManagerScript.GameEventObjDelegate dialogDone, string dialogName, DialogsPackage package) { //Store caller action //this.playDialogAction = action; this.dialogDone = dialogDone; //Start dialog dialogBehaviour.CurrentDialog = package.GetDialogByName(dialogName); dialogBehaviour.StartDialog(); return true; }