public void Upgrade(string to) { UpgradesTo = to; if (Upgraded != null) { Upgraded.Invoke(this); } }
public virtual void Upgrade(IUpgradeData data) { Level++; Visual.UpdateUpgradeVisual(Level); if (Upgraded != null) { Upgraded.Invoke(_previewCost); } _previewCost = Cost; }
private void DefaultUpgradeTowerPanelOnUpgradeClicked(ICanUpgrade upgrade, IUpgrader upgrader) { Upgraded?.Invoke(upgrade, upgrader); }
public virtual void Upgrade() { Upgraded?.Invoke(this); }