private void Awake() { Title.text = Constant.Text.HighScore; CloseButton.onClick.AddListener(() => { Hide(); _onCloseCallback.Invoke(); }); _highscoreData = new HighscoreData(); Load(); Hide(); }
private void Load() { var json = PlayerPrefs.GetString(Highscore, "{}"); _highscoreData = JsonUtility.FromJson <HighscoreData>(json); }