Example #1
0
 public void SellTurret()
 {
     PlayerStatus.Money += selectedTurretDesign.SellPrice;
     Destroy(_turret);
     selectedTurretDesign = null;
     isUpgraded           = false;
 }
Example #2
0
 private void BuildTurret()
 {
     PlayerStatus.Money  -= BuildManager.Instance.SelectedTurret.cost;
     _turret              = Instantiate(BuildManager.Instance.SelectedTurret.prefab, GetPosition(), Quaternion.identity);
     selectedTurretDesign = BuildManager.Instance.SelectedTurret;
 }