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); } }
private void Awake() { _movingUIHandler = transform.parent.gameObject.GetComponent <MovingUIHandler>(); }