Exemplo n.º 1
0
    public void ShowInventory()
    {
        Inventories = GameManager.Inst().UiManager.InventoryScroll.GetComponent <InventoryScroll>();
        Inventories.transform.SetParent(InventoryArea.transform, false);
        Inventories.SetSlotType(2);
        Inventories.ShowInventory();

        Sort();
    }
Exemplo n.º 2
0
    void ShowInventory()
    {
        SelectableType = 0;

        Inventories = GameManager.Inst().UiManager.InventoryScroll.GetComponent <InventoryScroll>();
        Inventories.transform.SetParent(InventoryArea.transform, false);
        Inventories.SetSlotType(1);

        Inventories.ShowInventory();
    }
Exemplo n.º 3
0
    public void ShowInventory()
    {
        gameObject.SetActive(true);

        Inventories = GameManager.Inst().UiManager.InventoryScroll.GetComponent <InventoryScroll>();
        Inventories.transform.SetParent(InventoryArea.transform, false);
        Inventories.SetSlotType(0);

        ShowInventoryCount();
        Inventories.ShowInventory();
    }
Exemplo n.º 4
0
    void ShowInventory()
    {
        Inventories = GameManager.Inst().UiManager.InventoryScroll.GetComponent <InventoryScroll>();
        Inventories.transform.SetParent(InventoryArea.transform, false);
        Inventories.SetSlotType(1);

        Inventories.ShowInventory();

        for (int i = 0; i < Constants.MAXBULLETS; i++)
        {
            if (GameManager.Inst().UpgManager.BData[i].GetEquipIndex() != -1)
            {
                InventorySlot slot = Inventories.GetSlot(Inventories.GetSwitchedIndex(GameManager.Inst().UpgManager.BData[i].GetEquipIndex()));
                slot.EMark.SetActive(true);
            }
        }
    }