Example #1
0
        public void Upgrade(string to)
        {
            UpgradesTo = to;

            if (Upgraded != null)
            {
                Upgraded.Invoke(this);
            }
        }
Example #2
0
        public virtual void Upgrade(IUpgradeData data)
        {
            Level++;

            Visual.UpdateUpgradeVisual(Level);

            if (Upgraded != null)
            {
                Upgraded.Invoke(_previewCost);
            }

            _previewCost = Cost;
        }
Example #3
0
 private void DefaultUpgradeTowerPanelOnUpgradeClicked(ICanUpgrade upgrade, IUpgrader upgrader)
 {
     Upgraded?.Invoke(upgrade, upgrader);
 }
Example #4
0
 public virtual void Upgrade()
 {
     Upgraded?.Invoke(this);
 }