예제 #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();
    }
예제 #2
0
 private void Start()
 {
     Health.MaxHealth = stats.health;
     Treasury.AddGold(stats.baseGold);
 }
예제 #3
0
 public void LootGold()
 {
     Treasury.AddGold(goldAmount);
 }
예제 #4
0
 public void RecieveIncome(PositiveInt income) => _Treasury.AddGold(income);