protected override void OnButton()
 {
     UpgradeClicked?.Invoke(this, upgradeCost, upgradeMultiplier, UpgradeType.AutoCookieUpgrade);
 }
Esempio n. 2
0
 protected override void OnButton()                                                          // When the button is clicked on
 {
     UpgradeClicked?.Invoke(this, upgradeCost, upgradeMultiplier, UpgradeType.ClickUpgrade); // If event != null, continue
 }
        protected virtual void OnUpgradeButtonClick()
        {
            UpgradeClicked?.Invoke(_tower, _upgrader);

            UpdateViews();
        }