示例#1
0
        private void Awake()
        {
            Title.text = Constant.Text.HighScore;

            CloseButton.onClick.AddListener(() =>
            {
                Hide();
                _onCloseCallback.Invoke();
            });

            _highscoreData = new HighscoreData();
            Load();
            Hide();
        }
示例#2
0
        private void Load()
        {
            var json = PlayerPrefs.GetString(Highscore, "{}");

            _highscoreData = JsonUtility.FromJson <HighscoreData>(json);
        }