void Update() { if (Input.GetKeyDown(KeyCode.R)) { PlayerPrefs.DeleteAll(); } currentSave = PlayerStatsController.GetSave(); }
// Update is called once per frame void Update() { Lar = Screen.width / 2; Alt = Screen.height / 10; posx = Screen.width / 2 - Lar / 2; posy = Screen.height / 10; posxSave = Screen.width / 6; currentSave = PlayerStatsController.GetSave(); save = PlayerPrefs.GetInt(PlayerStatsController.CurrentSave() + "Save"); if (hover != "") { onhover = true; } else if (hover == "") { onhover = false; played = false; } if (onhover && !played) { AudioSource.PlayClipAtPoint(menu, transform.position); played = true; } }