public static void lua_close_replace(IntPtr luaState)
 {
     if (LuaProfiler.mainL == luaState)
     {
         LuaProfiler.mainL = IntPtr.Zero;
     }
     LuaDLL.lua_close(luaState);
 }
 private void WaitDestory()
 {
     desotryCount++;
     if (desotryCount > 10)
     {
         UnityEditor.EditorApplication.update -= WaitDestory;
         if (LuaProfiler.mainL != IntPtr.Zero)
         {
             LuaDLL.lua_close(LuaProfiler.mainL);
         }
         LuaProfiler.mainL = IntPtr.Zero;
         NetWorkClient.Close();
         desotryCount = 0;
     }
 }