示例#1
0
    // Update is called once per frame
    void Update()
    {
        increaseSpeedTimer += Time.deltaTime;

        if (increaseSpeedTimer >= 5.0f)
        {
            foreach (ClockHand hand in clockHands)
            {
                hand.IncreaseSpeed(15.0f * PlayerSet.numPlayers);
            }
            GetComponent <AudioSource>().pitch += 0.1f;
            increaseSpeedTimer = 0.0f;
        }

        if (Input.GetKeyDown(KeyCode.Escape))
        {
            PlayerSet.numPlayers = 1;
            ScoreVar.Reset();
            SceneManager.LoadScene("StartScreen");
        }
    }
示例#2
0
文件: menuStart.cs 项目: Alvinw9/Time
 public void changeMenuScene()
 {
     ScoreVar.Reset();
     SceneManager.LoadScene("StartScreen");
 }