예제 #1
0
파일: GameManager.cs 프로젝트: Alvinw9/Time
    // 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");
 }