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>(); }