Beispiel #1
0
    public static void Sell(Transform position, TowerStats stats)
    {
        int gold = stats.buildPrice / 2;

        Treasury.AddGold(gold);

        Builder.BuildSlot(position);

        Destroyer destroyer = position.GetComponentInParent <Destroyer>();

        destroyer.DestroyYourself();
    }
Beispiel #2
0
 private void Start()
 {
     Health.MaxHealth = stats.health;
     Treasury.AddGold(stats.baseGold);
 }
Beispiel #3
0
 public void LootGold()
 {
     Treasury.AddGold(goldAmount);
 }
Beispiel #4
0
 public void RecieveIncome(PositiveInt income) => _Treasury.AddGold(income);