protected virtual void OnUnequip() { for (int i = 0; i < attributeList.Length; i++) { attr.AddFixed(attributeList[i].type, -attributeList[i].quantity); } }
protected virtual void OnEquip(GameObject obj) { attr = obj.GetComponent <AttributeSystem>(); for (int i = 0; i < attributeList.Length; i++) { attr.AddFixed(attributeList[i].type, attributeList[i].quantity); } }