Beispiel #1
0
    IEnumerator StageTutorial()
    {
        int progress_count = progresses.Count;
        int now_count      = 0;

        while (now_count != progress_count)
        {
            if (progresses[now_count].target_text == rpText)
            {
                Debug.Log("rp said : ");
                uiController.ChangeCharacter(2);
            }
            else
            {
                Debug.Log("bp said : ");
                uiController.ChangeCharacter(1);
            }
            yield return(StartCoroutine(TextingStage(progresses[now_count])));

            yield return(StartCoroutine(Waiting()));

            progresses[now_count].target_text.transform.parent.gameObject.SetActive(false);
            now_count++;
        }

        this.gameObject.SetActive(false);
        yield break;
    }