public void Initialize(int _iIndex) { DataBattleSkillParam dataParam = DataManager.Instance.dataBattleSkill.list[_iIndex]; MasterBattleSkillParam masterParam = DataManager.Instance.masterBattleSkill.Get(dataParam.battle_skill_id); Initialize(dataParam, masterParam); }
//private DataBattleSkillParam m_dataParam; //private MasterBattleSkillParam m_masterParam; public void Initialize(DataBattleSkillParam _dataParam, MasterBattleSkillParam _masterParam) { //m_dataParam = _dataParam; //m_masterParam = _masterParam; m_txtName.text = _masterParam.name; }