diff --git a/Assets/Scripts/GameOver.cs b/Assets/Scripts/GameOver.cs index 46491e6..1032d27 100644 --- a/Assets/Scripts/GameOver.cs +++ b/Assets/Scripts/GameOver.cs @@ -37,7 +37,6 @@ public class GameOver : MonoBehaviour public void OnButtonPlayClicked() { - GameController.Speed = GameController.InitialSpeed; SceneManager.LoadScene("Main"); } diff --git a/Assets/Scripts/UIController.cs b/Assets/Scripts/UIController.cs index 7de9991..66d0550 100644 --- a/Assets/Scripts/UIController.cs +++ b/Assets/Scripts/UIController.cs @@ -22,6 +22,7 @@ public class UIController : MonoBehaviour void Start () { + GameController.Speed = GameController.InitialSpeed; _player = GameObject.FindWithTag("Player").GetComponent(); HighScore.text = " "; // Keep position of elements, even when not displaying this one _oldHs = PlayerPrefs.GetInt("highscore");