예제 #1
0
 private void ResetGame()
 {
     PlayerStats.current.Reset();
     gameStarted           = false;
     gameSpeed             = 1f;
     nextSpeedIncreaseTime = Time.time + 1f;
     userInterfaceManager  = gameObject.GetComponent <UserInterfaceManager>();
     userInterfaceManager.InitializeManager();
     playerController = GameObject.FindGameObjectWithTag("Player").GetComponent <PlayerController>();
 }