コード例 #1
0
ファイル: PlayerData.cs プロジェクト: Gregaf/super-elmo-world
 public void LoseScore(int scoreToLose)
 {
     this.currentScore -= scoreToLose;
     OnPlayerScoreChange?.Invoke(this.currentScore);
 }
コード例 #2
0
ファイル: PlayerData.cs プロジェクト: Gregaf/super-elmo-world
 public void AddScore(int scoreToAdd)
 {
     this.currentScore += scoreToAdd;
     OnPlayerScoreChange?.Invoke(this.currentScore);
 }