public void UpgradeButtonClick() { hubWorldSFX.PlayHubSoundEffect(HubWorldSFX.HubSoundeffect.UpgradeItem); Item selectedItem = inventoryList.GetSelectedItem(); playerData.CreditsSpend(GetPrice(selectedItem)); selectedItem.UpgradeItem(); UpdateAfterUpgrade(selectedItem); }