// 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"); } }
public void changeMenuScene() { ScoreVar.Reset(); SceneManager.LoadScene("StartScreen"); }