Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
liuxq committed Jul 16, 2017
1 parent bea9b81 commit e51bc76
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 8 deletions.
7 changes: 0 additions & 7 deletions Csharp/KBEMain.cs
Original file line number Diff line number Diff line change
Expand Up @@ -22,13 +22,7 @@ void Awake()
void Start ()
{
MonoBehaviour.print("clientapp::start()");
KBEngine.Event.registerIn("onResourceInitFinish", this, "onResourceInitFinish");
}

public void onResourceInitFinish()
{
initKBEngine();
}

public virtual void initKBEngine()
{
Expand All @@ -51,7 +45,6 @@ void OnDestroy()

Dbg.WARNING_MSG("KBEngine::destroy()");
KBEngine.Event.deregisterIn(this);
KBELuaUtil.CallMethod("KBEngineLua", "Destroy");

MonoBehaviour.print("clientapp::OnDestroy(): end");
}
Expand Down
2 changes: 1 addition & 1 deletion Csharp/LuaManager.cs
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ void OpenLibs() {
void InitLuaPath() {
string rootPath = Application.dataPath;
lua.AddSearchPath(rootPath + "/Lua");
lua.AddSearchPath(rootPath + "/KbenginePlugins/Lua");
lua.AddSearchPath(rootPath + "/kbengine_unity3d_lua_plugins/Lua");
lua.AddSearchPath(rootPath + "/ToLua/Lua");
}

Expand Down

0 comments on commit e51bc76

Please sign in to comment.