Пример #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
 public void changeMenuScene()
 {
     ScoreVar.Reset();
     SceneManager.LoadScene("StartScreen");
 }