static int LoadSubSceneAsync(IntPtr L) { try { ToLua.CheckArgsCount(L, 1); LuaFramework.SceneManager obj = (LuaFramework.SceneManager)ToLua.CheckObject <LuaFramework.SceneManager>(L, 1); obj.LoadSubSceneAsync(); return(0); } catch (Exception e) { return(LuaDLL.toluaL_exception(L, e)); } }
static int GetSceneManager(IntPtr L) { try { ToLua.CheckArgsCount(L, 0); LuaFramework.SceneManager o = LuaFramework.LuaHelper.GetSceneManager(); ToLua.Push(L, o); return(1); } catch (Exception e) { return(LuaDLL.toluaL_exception(L, e)); } }
static int GetCurSceneName(IntPtr L) { try { ToLua.CheckArgsCount(L, 1); LuaFramework.SceneManager obj = (LuaFramework.SceneManager)ToLua.CheckObject <LuaFramework.SceneManager>(L, 1); string o = obj.GetCurSceneName(); LuaDLL.lua_pushstring(L, o); return(1); } catch (Exception e) { return(LuaDLL.toluaL_exception(L, e)); } }
static int ChangeScene(IntPtr L) { try { ToLua.CheckArgsCount(L, 2); LuaFramework.SceneManager obj = (LuaFramework.SceneManager)ToLua.CheckObject <LuaFramework.SceneManager>(L, 1); string arg0 = ToLua.CheckString(L, 2); obj.ChangeScene(arg0); return(0); } catch (Exception e) { return(LuaDLL.toluaL_exception(L, e)); } }
static int LoadSceneAsync(IntPtr L) { try { ToLua.CheckArgsCount(L, 3); LuaFramework.SceneManager obj = (LuaFramework.SceneManager)ToLua.CheckObject <LuaFramework.SceneManager>(L, 1); string arg0 = ToLua.CheckString(L, 2); LuaFunction arg1 = ToLua.CheckLuaFunction(L, 3); obj.LoadSceneAsync(arg0, arg1); return(0); } catch (Exception e) { return(LuaDLL.toluaL_exception(L, e)); } }