void OnApplicationQuit() { if (highScore < score) { highScore = score; saveManagerScript.ChangeValueOfHighScoreSave(highScore); saveManagerScript.Save(); } }