示例#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);