public void Upgrade() { if (Currencies.Gold < price) { return; } Currencies.AddGold(-price); GameObject lvlUp = Instantiate(nextLvl, transform.position, transform.rotation); Destroy(gameObject); Selector.Deselect(); }
public void AddGold(int amount) { Currencies.AddGold(amount); }
public void Sell() { Currencies.AddGold(price); Destroy(gameObject); Selector.Deselect(); }