/// <summary>自定义的对话框触发,自带有DialogOpen方法,但不具有DialogClose方法</summary> /// <param name="trigger">触发对话条件</param> public virtual void TriggerDialogManual(bool trigger, TextShowType type, Action callback = null) { if (trigger && (DialogState != TextShowState.Read)) { DialogOpen(); switch (type) { case TextShowType.ShowContentByWord: StartCoroutine(WaitForTextShowAllContent(true, callback)); break; case TextShowType.ShowLineByWord: StartCoroutine(WaitForTextShowSingleLine(true, callback)); break; case TextShowType.ShowLineByLine: StartCoroutine(WaitForTextShowSingleLine(false, callback)); break; case TextShowType.ShowContentByLine: StartCoroutine(WaitForTextShowAllContent(false, callback)); break; case TextShowType.Manual: break; } } }
///<summary>自定义的对话框触发 TextShowType.Content会有DialogOpen方法,但不具有DialogClose方法</summary> public virtual void TriggerDialogManual(string name, bool trigger, TextShowType type, Action cb = null) { if (!GetTextContent(name)) { return; } TriggerDialogManual(trigger, type, cb); }
public virtual void TriggerDialogManual(List <string> data, bool trigger, TextShowType type, Action cb = null) { _currentText = data; TriggerDialogManual(trigger, type, cb); }