示例#1
0
    IEnumerator DoExitSeqAnimator(AnimatorEnterExit seq)
    {
        seq.PlayExit();
        yield return(seq.PlayExitWait());

        seq.gameObject.SetActive(false);
    }
示例#2
0
        IEnumerator DoDialogEnter(M8.TextMeshPro.TextMeshProTypewriter dialog, AnimatorEnterExit transition, string textRef)
        {
            transition.gameObject.SetActive(true);

            yield return(transition.PlayEnterWait());

            dialog.text = M8.Localize.Get(textRef);
            dialog.gameObject.SetActive(true);

            LoLManager.instance.StopSpeakQueue();
            LoLManager.instance.SpeakText(textRef);
        }
示例#3
0
    IEnumerator DoHide(GameObject go, AnimatorEnterExit animatorEnterExit)
    {
        if (animatorEnterExit)
        {
            while (animatorEnterExit.isPlaying)
            {
                yield return(null);
            }

            yield return(animatorEnterExit.PlayExitWait());
        }

        go.SetActive(false);
    }
示例#4
0
    IEnumerator DoShow(GameObject go, GameObject postActiveGO, AnimatorEnterExit animatorEnterExit)
    {
        go.SetActive(true);

        if (animatorEnterExit)
        {
            while (animatorEnterExit.isPlaying)
            {
                yield return(null);
            }

            yield return(animatorEnterExit.PlayEnterWait());

            if (postActiveGO)
            {
                postActiveGO.SetActive(true);
            }
        }
    }