public void OnBtnSkillUp() { if (_CurMonster == null) { return; } SkillUpUI.CreateSkillUpUI(_CurMonster); }
/// <summary> /// 显示界面并初始化 /// </summary> /// <returns>The skill panel.</returns> /// <param name="root">Root.</param> public static SkillUpUI CreateSkillUpUI(Monster mon) { GameObject obj = PrefabLoader.loadFromPack("ZQ/SkillUpUI") as GameObject; if (obj != null) { GameObject go = Instantiate(obj) as GameObject; RED.AddChild(go, DBUIController.mDBUIInstance._TopRoot); SkillUpUI script = go.GetComponent <SkillUpUI>(); script.m_monster = mon; return(script); } return(null); }
void Awake() { _mInstance = this; }
void OnClickSkillUp() { SkillUpUI.CreateSkillUpUI(m_data); OnClickClose(); }