private void Start() { inventory = _Inventory.instance; int numSlots = System.Enum.GetNames(typeof(EquipmentSlot)).Length; currentEquipment = new Equipment[numSlots]; }
void Awake() { if (instance != null) { Debug.Log("More than one instance of _Inventory found!"); return; } instance = this; }
void Awake() // added by me { if (instance != null) // added by me { Debug.LogWarning(" More than one instance of Inventory found!"); return; }// added by me instance = this; }
void Start() { int numSlot = System.Enum.GetNames(typeof(_EquipmentSlot)).Length; currentEquipments = new _Equipment[numSlot]; currentMeshs = new SkinnedMeshRenderer[numSlot]; inventory = _Inventory.instance; EquipDefaultEquipment(); }
void Start() { inventory = _Inventory.instance; inventorySlots = itemParent.GetComponentsInChildren <_InventorySlot> (); inventory.onItemChangedCallBack += UpdateUI; }
void Start() { instance = this; updatePanelSlots(); }