示例#1
0
    public void HitGoal()
    {
        switch (activeMode)
        {
        case Mode.Normal:
            GameUI.setCenteredText(string.Format("Congratulations you finished this maze in {0}", GameUI.secondsToPrintableTime(Timer)));
            Puase();
            break;

        case Mode.TimeAttack:
            Score++;
            GameUI.SetScore(Score);
            Puase(3.0f);
            SceneManager.LoadScene(SceneManager.GetActiveScene().name);
            break;
        }
    }