// Update is called once per frame void Update() { if (endGame == false) { return; } if (inputField.text.Length == 3 && Input.GetKeyDown(KeyCode.KeypadEnter) || Input.GetKeyDown(KeyCode.Return)) { enterNameScreen.SetActive(false); GameSave.AddScore(inputField.text.ToUpper(), GameScore.instance.globalscore, GameScore.instance.redScore, GameScore.instance.blueScore, GameScore.instance.greenScore); leaderboardScreen.SetActive(true); ShowLeaderboards(); leaderboardVisible = true; } else { //inputField.text += Input.inputString; -> ça faisait bugger bizarrement } if (leaderboardVisible == true && Input.GetKeyDown(KeyCode.R)) { DeleteBalls(); GameObject.Destroy(GameObject.Find("GameManager")); UnityEngine.SceneManagement.SceneManager.LoadScene("Menu"); } }