public void UF_OnReset() { if (m_Luastate != null) { m_Luastate.Dispose(); } m_IsInited = false; lfHandleEventMsg = null; lfHandleNetMsg = null; m_Luastate = null; System.GC.Collect(); }