public void LoadInventory() { List <Item> purchasedItems = PlayerPrefsController.GetPurchasedItemList(world); if (purchasedItems != null) { foreach (Item item in purchasedItems) { purchasedItemMap.Add(item.name, item); } } equippedWeapons = PlayerPrefsController.GetEquippedWeaponList(world); equippedItems = PlayerPrefsController.GetEquippedItemList(world); ChangeWeapon(0); }