public void Awake()
 {
     ImagesLoader.LoadImages();
     //foreach (RectTransform child in gameObject.transform)
     //{
     //    child.GetComponent<PlayerEquipmentSlot>().FillSlot(child.GetSiblingIndex());
     //}
 }
 public void Start()
 {
     ImagesLoader.LoadImages();
     for (int itemIndex = 0; itemIndex < items.ItemsCount; itemIndex++)
     {
         var ID   = items.GetIDByIndex(itemIndex);
         var slot = Instantiate(itemPrefab);
         slot.name = items.GetItemByID(ID).Name;
         slot.transform.SetParent(content, false);
         var slotData = slot.GetComponent <InventorySlot>();
         slotData.FillByID(ID);
     }
 }
 public void Start()
 {
     ImagesLoader.LoadImages();
     CreateSlotsInInventory();
 }