static int _CreateScripts_LuaToCSFunction(IntPtr L) { try { int count = LuaDLL.lua_gettop(L); if (count == 0) { Scripts.LuaToCSFunction obj = new Scripts.LuaToCSFunction(); ToLua.PushObject(L, obj); return(1); } else { return(LuaDLL.luaL_throw(L, "invalid arguments to ctor method: Scripts.LuaToCSFunction.New")); } } catch (Exception e) { return(LuaDLL.toluaL_exception(L, e)); } }
void OnApplicationPause(bool isPause) { if (InitLuaFramework) { if (isPause) { //游戏暂停 一切停止 LuaToCSFunction.CallToLuaFunction("GameEnterBackground"); } else { LuaToCSFunction.CallToLuaFunction("GameEnterForeground"); } } if (isPause) { Debug.Log("游戏暂停!"); } else { } }
// Use this for initialization void Start() { LuaToCSFunction.CallToLuaFunction("EnterFightScene"); }