public void updateTalentItem(TalentPanel talentPanel, CommonDefine.eTalentType type, int id, string name, string des, CommonDefine.TalentSlotState btnState) { _talent = type; _id = id; _name = name; _des = des; _talentPanel = talentPanel; updateBtnState(btnState); }
private void OnValidate() { if (itemSlotList == null) { itemSlotList = FindObjectOfType <ItemSlotList>(); } if (talentPanel == null) { talentPanel = FindObjectOfType <TalentPanel>(); } if (equipMentSlotList == null) { equipMentSlotList = FindObjectOfType <EquipmentPanel>(); } if (forgingUpgradePanel == null) { forgingUpgradePanel = FindObjectOfType <ForgingUpgradePanel>(); } }