Esempio n. 1
0
    private void EndCutscene()
    {
        if (!inCutscene)
        {
            Debug.LogWarning("Call to endCutscene when cutscene is still active.");
        }
        inCutscene = false;

        guiTimerManager.CutsceneEnd();
        cameraManager.CutsceneEnd();
        hazardManager.CutsceneEnd();
        treeManager.CutsceneEnd();

        currentStage += 1;
        switch (currentStage)
        {
        case Globals.STAGE_ONE: { totalSeconds = secondsForFirtstPart; break; }

        case Globals.STAGE_TWO: { totalSeconds = secondsForSecondPart; break; }

        case Globals.STAGE_THREE: { totalSeconds = secondsForThirdPart; break; }
        }
    }