Example #1
0
    void Awake()
    {
        inv          = inventoryGO.GetComponent <UI_Inventory>();
        itemList     = inventoryGO.GetComponent <UI_ItemsList>();
        eventManager = inventoryGO.GetComponent <UI_EventManager>();
        hotbar       = inventoryGO.GetComponent <UI_Hotbar>();

        if (playerEquipGO == null)
        {
            playerEquipGO = GameObject.Find("PlayerEquipment");
        }
        playerEquipment = playerEquipGO.GetComponent <UI_PlayerEquipment>();
    }
Example #2
0
 void Awake()
 {
     inventoryGO  = GameObject.Find("Ultimate Inventory Pro");
     inv          = inventoryGO.GetComponent <UI_Inventory>();
     itemList     = inventoryGO.GetComponent <UI_ItemsList>();
     eventManager = inventoryGO.GetComponent <UI_EventManager>();
     hotbar       = inventoryGO.GetComponent <UI_Hotbar>();
     if (playerEquipGO == null)
     {
         playerEquipGO = GameObject.Find("PlayerEquipment");
     }
     playerEquipment = playerEquipGO.GetComponent <UI_PlayerEquipment>();
     conScript       = container.GetComponent <UI_Container>();
 }