private void OnSaved() { var highscore = new ScoreKeeper.Highscore(); highscore.name = _nameInput.text; highscore.score = _score; gameObject.SetActive(false); _callback(highscore); }
public void Init(ScoreKeeper.Highscore highscore) { _nameText.text = highscore.name.ToString(); _scoreText.text = highscore.score.ToString(); }