//--------------------------------------------------------------------- public void Destroy() { var lua_launch = LuaEnv.Global.Get <LuaTable>("Launch"); if (FuncLaunchClose != null) { FuncLaunchClose.Invoke(lua_launch); } FuncLaunchClose = null; FuncLaunchOnApplicationPause = null; FuncLaunchOnApplicationFocus = null; if (LuaEnv != null) { LuaEnv.Dispose(); LuaEnv = null; } }
//--------------------------------------------------------------------- public void Release() { var lua_launch = LuaEnv.Global.Get <LuaTable>("Launch"); if (FuncLaunchClose != null) { FuncLaunchClose.Invoke(lua_launch); } FuncLaunchClose = null; FuncLaunchOnAndroidQuitConfirm = null; FuncLaunchOnApplicationPause = null; FuncLaunchOnApplicationFocus = null; FuncLaunchOnSocketClose = null; if (LuaEnv != null) { LuaEnv.Dispose(); LuaEnv = null; } }