Exemplo n.º 1
0
 private void Awake()
 {
     _movingUIHandler = transform.parent.gameObject.GetComponent <MovingUIHandler>();
     for (int i = 0; i < EquipmentController.Instance.Capacity; ++i)
     {
         GameObject     slotGameObject = Instantiate(Slot, ScrollableSlots.transform.Find("SlotsPanel"));
         SlotController slotController = slotGameObject.GetComponent <SlotController>();
         EquipmentController.Instance.AddItemSlot(slotController);
     }
 }
Exemplo n.º 2
0
 private void Awake()
 {
     _movingUIHandler = transform.parent.gameObject.GetComponent <MovingUIHandler>();
 }