static int ClearSceneData(IntPtr L) { try { ToLua.CheckArgsCount(L, 0); LuaSceneTool.ClearSceneData(); return(0); } catch (Exception e) { return(LuaDLL.toluaL_exception(L, e)); } }
private void Start() { mUnloadSceneIndex = LuaSceneTool.CurrentSceneIndex; mTargetSceneIndex = LuaSceneTool.SceneIndex; mIsUnloadScene = LuaSceneTool.IsUnload; LuaSceneTool.ClearSceneData(); if (mIsUnloadScene) { StartUnloadScene(); } else { StartLoadScene(); } }