private void Update() { PlayerPrefs.SetInt(MusicVolume, (int)musicSlided.value); musicSource.volume = PlayerPrefs.GetInt(MusicVolume) / 9f; PlayerPrefs.SetInt(SoundVolume, (int)soundSlider.value); musicText.text = musicSlided.value.ToString(CultureInfo.InvariantCulture); soundText.text = soundSlider.value.ToString(CultureInfo.InvariantCulture); if (PlayerPrefs.HasKey(Coins)) { coinText.text = PlayerPrefs.GetInt(Coins).ToString(); } else { coinText.text = "0"; } if (Input.GetKeyDown(KeyCode.Escape)) { PlayGamesScript.SignOut(); Application.Quit(); } }