Exemple #1
0
    public void Play(SequenceChapterData data)
    {
        foreach (var element in data.elements)
        {
            coroutines.Add(StartCoroutine(Show(element)));
        }

        coroutines.Add(StartCoroutine(Complete(data)));
    }
Exemple #2
0
    private IEnumerator Complete(SequenceChapterData data)
    {
        yield return(new WaitForSeconds(data.duration));

        StoryManager.instance.OpenChapter(data.nextChapter);
    }