public void OnDestroy() { Debug.Log("OnDestroy"); if (null != luaEditor) { luaEditor.Destroy(); luaEditor = null; } }
public void OnEnable() { if (null != luaEditor) { luaEditor.Destroy(); luaEditor = null; } Setup(); }
public void Setup() { luaEditor = new ZTSkillLuaEditor(); LoadSkillConfig(); }