public PlayerData(ScoreData data) { score = data.GetScore(); coins = data.GetCoins(); }
private void UpdateScoreText() { _text.text = "Score: " + _saver.GetScore() + "\nCoins: " + _saver.GetCoins(); }