public void DoUpgrade1() { playerHandler.AddMoney(-currentCell.upgrade1Cost); currentCell.Upgrade1(); currentCell.RemoveCircle(); currentCell.CreateCircle(); }
// Public Methods public void InflammationUpgrade() { playerHandler.AddMoney(-inflammationUpgradeCost); foreach (Pathogen p in attackerHandler.attackers) { p.Slow(40, 10); } }
// Public Methods public void BuyCell() { GameObject g = Instantiate(cell, transform.position, transform.rotation); Cell boughtCell = g.GetComponent <Cell>(); boughtCell.placing = true; boughtCell.placeable = true; boughtCell.CreateCircle(); playerHandler.AddMoney(-cost); placing = true; }
public void SellTower() { player.AddMoney(cost / 2); player.RemoveCell(this); Destroy(gameObject); }
// Private Methods private void Reward() { playerHandler.AddMoney(waveReward + currentWave * 10); }
public void GiveReward(int r) { player.AddMoney(r); }