static int OnDestroy(IntPtr L)
 {
     try
     {
         ToLua.CheckArgsCount(L, 1);
         SingletonManager <ResourceMgr> obj = (SingletonManager <ResourceMgr>)ToLua.CheckObject <SingletonManager <ResourceMgr> >(L, 1);
         obj.OnDestroy();
         return(0);
     }
     catch (Exception e)
     {
         return(LuaDLL.toluaL_exception(L, e));
     }
 }