public void AddScore(int value) { Scores += value; if (Scores > PlayerPrefs.GetInt("Highscore")) { PlayerPrefs.SetInt("Highscore", Scores); PlayerPrefs.Save(); } AddScoreEvent?.Invoke(value); }
public void AddScore(int value) { AddScoreEvent?.Invoke(value); }