Exemplo n.º 1
0
    /// <summary>
    /// parduoti bokštelį
    /// </summary>
    public void SellTurret()
    {
        Turret _turret = turret.GetComponent <Turret>();

        PlayerStats.Gold += turretBlueprint.GetSellCost() + (_turret.lvl * turretBlueprint.upgradeCost / 2);
        Destroy(turret);
        sounds.SellTower.Play();
        turretBlueprint = null;
    }
Exemplo n.º 2
0
 public void SellTurret()
 {
     PlayerStats.Money += (int)turretBlueprint.GetSellCost();
     Destroy(turret);
     turret = null;
 }