Beispiel #1
0
 public void SubtractCoins(int value)
 {
     Coins -= value;
     CoinsChangedEvent?.Invoke(Coins);
 }
Beispiel #2
0
 public void ResetCoins()
 {
     Coins = StartCoins;
     CoinsChangedEvent?.Invoke(StartCoins);
 }
Beispiel #3
0
 public void AddCoins(int value)
 {
     Coins += value;
     CoinsChangedEvent?.Invoke(Coins);
 }