예제 #1
0
    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);
    }