コード例 #1
0
ファイル: TalentItem.cs プロジェクト: shacleff/LianQiClient
    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);
    }
コード例 #2
0
 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>();
     }
 }