protected override void OnButton() { UpgradeClicked?.Invoke(this, upgradeCost, upgradeMultiplier, UpgradeType.AutoCookieUpgrade); }
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(); }