public void Equip(EquiptmentSO newItem, EquimentType type) { Debug.Log(type); int index = (int)type; if (currentEquiptment[index] != null) { EquiptmentSO oldItem = currentEquiptment[index]; Inventory.instance.Add(oldItem); } currentEquiptment[index] = newItem; Callback(); }
public void Equip(EquiptmentSO eq) { equipmentManager.Equip(eq, eq.type); Remove(eq); }