Example #1
0
    IEnumerator GameIntro()
    {
        setCanMove(false);
        levelManager = GameObject.Find("LevelManager").GetComponent<LevelManager>();
        CountdownClock countdownClock = GameObject.Find("Countdown").GetComponent<CountdownClock>();
        float secs = SoundManager._instance.playGameIntro();
        yield return new WaitForSeconds(secs);
        levelManager.FadeFromBlack();
        yield return new WaitForSeconds(3f);
        levelManager.switchLights();
        yield return new WaitForSeconds(1);
        levelManager.gameIsPlaying = true;
        yield return new WaitForSeconds(1);
        countdownClock.setIsCounting(true);
        levelManager.CheckRemaining();
        setCanMove(true);
        SoundManager._instance.playOutro(levelOrder[currentLevelIndex]);
        Debug.Log("tomato");

    }