private void Start() { Inventory = global::Inventory.Scripts.Inventory.instance; Inventory.OnItemChangedCallBack += UpdateUI; _slots = itemsParent.GetComponentsInChildren <Inventory_Slot>(); }
private void Start() { int numSlots = System.Enum.GetNames(typeof(EqipmentSlot)).Length; currentEquipment = new Equipment[numSlots]; inventory = Inventory.Scripts.Inventory.instance; currentMeshes = new SkinnedMeshRenderer[numSlots]; }