Esempio n. 1
0
    public IEnumerator Run()
    {
        if (Asset != null)
        {
            GameManager.Instance.CurrentScene.PlayableDirector.playableAsset = Asset;
        }

        if (Asset == null || IsAwakePlay)
        {
            NovelsManager.Instance.ContineTimeLine();
        }

        if (OverCheck != null)
        {
            yield return(OverCheck.Run());
        }
    }
Esempio n. 2
0
    public IEnumerator Run()
    {
        if (Playable != null)
        {
            if (NovelsManager.Instance.CurrentPlayable != null)
            {
                GameHelper.Recycle(NovelsManager.Instance.CurrentPlayable.gameObject);
            }

            var obj = GameObject.Instantiate(Playable.gameObject);
            NovelsManager.Instance.CurrentPlayable = obj.GetComponent <PlayableDirector>();
        }

        if (Playable == null || IsAwakePlay)
        {
            NovelsManager.Instance.ContineTimeLine();
        }

        if (OverCheck != null)
        {
            yield return(OverCheck.Run());
        }
    }