Beispiel #1
0
    private void Start()
    {
        inputManager = TagResolver.i.inputManager;
        stacks       = LoadManager.GetInventoryStacks();
        if (stacks.Count > 0)
        {
            invUI.UpdateWithInventoryChange(this);
        }

        Item[] dockItems = LoadManager.GetDockItems();
        if (dockItems.Length > 0)
        {
            for (int index = 0; index < DockUI.DOCK_SLOTS_COUNT; index++)
            {
                Item item = dockItems[index];
                if (item != null)
                {
                    ItemSlot slot = dockUI.GetItemSlotForIndex(index);
                    slot.SetItem(item);
                }
            }
        }
        dockUI.UpdateWithInventoryChange(this);
    }