예제 #1
0
 private void ResourcesValueUpdate(int previousValue, int actualValue)
 {
     OnResourcesChanged?.Invoke(actualValue);
 }
예제 #2
0
    public void BuyTurret(int value)
    {
        _resources -= value;

        OnResourcesChanged?.Invoke(_resources);
    }
예제 #3
0
    public void SellTurret(TurretData turret)
    {
        _resources += turret.Cost;

        OnResourcesChanged?.Invoke(_resources);
    }
예제 #4
0
    private void EnemyKilledHandler(EnemyUnitData enemyUnitData)
    {
        _resources += enemyUnitData.MoneyForKill;

        OnResourcesChanged?.Invoke(_resources);
    }