public void AddReward(int reward) { score += reward; growScore += reward; if (growScore > growValue) { growScore -= 100; if (onScore != null) { onScore(); } } guiManager.ChangeScore(score.ToString()); }