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

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

            Visual.UpdateUpgradeVisual(Level);

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

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