Exemple #1
0
 public void UpgradeTurret()
 {
     if (ps.GetEnergy() > 0)
     {
         ps.SpendEnergy(1);
         FindObjectOfType <StatsUI>().UpdateEnergyCounter();
         turret.IncreaseTurretLevel();
     }
 }