Beispiel #1
0
    public void StartChapterIntro(int cNum, int lNum)
    {
        Debug.Log(TAG + "showing the chapter intro.");
        chapterNum          = cNum;
        levelNum            = lNum;
        textChapterNum.text = "Chapter " + (chapterNum + 1).ToString();

        ChapterManager.ChapterRef chapter = chapterManager.GetChapters()[chapterNum];
        textChapterName.text = chapter.GetName();
        ToGamePlay();
        textChapterIntro.SetActive(true);
        chapterIntro = true;
        timer        = 3.5f;
        int chapterSound = chapter.GetStartSound();

        soundManager.PlayUISound(chapterSound, 0.8f);
    }