void EndDialogue() { animator?.SetBool("IsOpen", false); blockInputPannel.gameObject.SetActive(false); OnEndDialogue?.Invoke(); }
public static void DisplayNext(Queue <string> sentences) { if (sentences.Count > 0) { Message m = MenuManager.Instance.DisplaySentence(sentences.Dequeue(), true, false); m.OnClose += () => DisplayNext(sentences); } else if (OnEndDialogue != null) { OnEndDialogue(); foreach (EndDialogue d in OnEndDialogue.GetInvocationList()) { OnEndDialogue -= d; } } }
public static void RequestEndDialogue() => OnEndDialogue?.Invoke();