public static void startDialogue(int dialogueId){ if(dialogue != null){ DialoguerEventManager.dispatchOnSuddenlyEnded(); } // Dispatch onStart event DialoguerEventManager.dispatchOnStarted(); // Set References dialogue = DialoguerDataManager.GetDialogueById(dialogueId); dialogue.Reset(); setupPhase(dialogue.startPhaseId); }
public static void startDialogue(int dialogueId) { if (dialogue != null) { DialoguerEventManager.dispatchOnSuddenlyEnded(); } // Dispatch onStart event DialoguerEventManager.dispatchOnStarted(); // Set References dialogue = DialoguerDataManager.GetDialogueById(dialogueId); dialogue.Reset(); setupPhase(dialogue.startPhaseId); }
public static void endDialogue() { if (onEndCallback != null) { onEndCallback(); } // Dispatch onEnd event DialoguerEventManager.dispatchOnWindowClose(); // Dispatch onEnd event DialoguerEventManager.dispatchOnEnded(); // Reset current dialogue dialogue.Reset(); // Clean up reset(); }
public static void endDialogue() { if (onEndCallback != null) { onEndCallback(); } // Dispatch onEnd event DialoguerEventManager.dispatchOnWindowClose(); // Dispatch onEnd event DialoguerEventManager.dispatchOnEnded(); // Reset current dialogue dialogue.Reset(); // Clean up reset(); //Debug.LogError ("DANGER"); GameManager.dialogueJustFinished = true; if (GameManager.Instance.playerInScene) { playerScript temp = (playerScript)MonoBehaviour.FindObjectOfType(typeof(playerScript)); if (temp != null) { temp.canWalk = true; temp.walkWait = 30; temp.talking = false; if (temp.anim != null) { temp.anim.SetFloat("distance", 0f); } temp.setTarget(new Vector2(temp.transform.position.x, temp.transform.position.y)); } } }