Ejemplo n.º 1
0
    public void UpgradeButtonClick()
    {
        hubWorldSFX.PlayHubSoundEffect(HubWorldSFX.HubSoundeffect.UpgradeItem);
        Item selectedItem = inventoryList.GetSelectedItem();

        playerData.CreditsSpend(GetPrice(selectedItem));
        selectedItem.UpgradeItem();
        UpdateAfterUpgrade(selectedItem);
    }