public void AttemptPurchase() { if (!isPurchased) if (purchaseHandler.IsAffordable(upgradeHandler.GetCost())) PurchaseUpgrade(); }