Пример #1
0
        void SortContainer()
        {
            Inventory inventory = InventoryGui.instance.m_container.GetComponentInChildren <InventoryGrid>().GetInventory();

            InventoryUtils.Sort(inventory);
            Logger.LogDebug($"Sorted container inventory");
        }
Пример #2
0
 public static void Sort(Container container, int offset = 0)
 {
     InventoryUtils.Sort(container.GetInventory(), offset);
 }
Пример #3
0
 void SortPlayerInventory()
 {
     InventoryUtils.Sort(Player.m_localPlayer.GetInventory(), 8);
     Logger.LogDebug("Sorted player inventory");
 }