Пример #1
0
    public void PlayerReachedFinish()
    {
        player.Deactivate();
        player.EndOfLevel();
        vignette.FadeOut();
        levelEndDelayTimer.Restart();
        ScoreScript score = GameObject.FindGameObjectWithTag("Score").GetComponent <ScoreScript>();

        score.AddLosses(bunniesLost);
        score.FollowingScene = nextScene;
        score.PreviousScene  = Application.loadedLevelName;
        if (killMusic)
        {
            GameObject.FindGameObjectWithTag("Music").GetComponent <MusicSingletonScript>().FadeOut(musicFade, musicFadeTime);
        }
    }