public void RefillEnergy() { Debug.Log("Trying to refill"); Debug.Log(StoreInventory.GetItemBalance("gold").ToString()); if (StoreInventory.GetItemBalance("gold") >= refillPrice) { livesLeft = MAX_LIVES; StoreInventory.TakeItem("gold", refillPrice); StoreInventory.RefreshLocalInventory(); UIServer.main.ShowPage("LevelList"); Debug.Log("Energy refilled"); } }