protected override void Update() { if (!IsActivated || !GameManager.Instance.hasGameStarted) { return; } base.Update(); if (moneyAndFoodTimer.Check(Time.deltaTime)) { MoneyAdded.Invoke(moneyIncrement); if (isFood) { FoodAdded.Invoke(foodIncrement); } } }
public void Put(int sum) { this.sum += sum; MoneyAdded?.Invoke($"Sum put on account {sum}"); }
public void Deposit(int sum) { Balance += sum; MoneyAdded?.Invoke(this, new UserEventArgs(Balance)); }
private void Button_Click_7(object sender, RoutedEventArgs e) { coin = coin + 1000; MoneyAdded?.Invoke(coin); }
public void Put(int sum) { this.sum += sum; MoneyAdded?.Invoke(this, new AccountEventArgs($"You Added {sum} on your account", sum)); }