private void ResourcesValueUpdate(int previousValue, int actualValue) { OnResourcesChanged?.Invoke(actualValue); }
public void BuyTurret(int value) { _resources -= value; OnResourcesChanged?.Invoke(_resources); }
public void SellTurret(TurretData turret) { _resources += turret.Cost; OnResourcesChanged?.Invoke(_resources); }
private void EnemyKilledHandler(EnemyUnitData enemyUnitData) { _resources += enemyUnitData.MoneyForKill; OnResourcesChanged?.Invoke(_resources); }