LuaGC() public method

public LuaGC ( ) : void
return void
示例#1
0
        /// <summary>
        /// 清理内存
        /// </summary>
        public static void ClearMemory()
        {
            GC.Collect(); Resources.UnloadUnusedAssets();
            LuaManager mgr = AppFacade.LuaManager;

            if (mgr != null)
            {
                mgr.LuaGC();
            }
        }
示例#2
0
        /// <summary>
        /// 清理内存
        /// </summary>
        public static void ClearMemory()
        {
            GC.Collect(); Resources.UnloadUnusedAssets();
            LuaManager mgr = AppFacade.Instance.GetManager <LuaManager>(ManagerName.Lua);

            if (mgr != null)
            {
                mgr.LuaGC();
            }
        }
示例#3
0
        public static void ClearMemory()
        {
            GC.Collect();
            Resources.UnloadUnusedAssets();
            LuaManager manager = AppFacade.Instance.GetManager <LuaManager>("LuaScriptMgr");

            if (manager != null)
            {
                manager.LuaGC();
            }
        }
示例#4
0
 static int LuaGC(IntPtr L)
 {
     try
     {
         ToLua.CheckArgsCount(L, 1);
         LuaFramework.LuaManager obj = (LuaFramework.LuaManager)ToLua.CheckObject(L, 1, typeof(LuaFramework.LuaManager));
         obj.LuaGC();
         return(0);
     }
     catch (Exception e)
     {
         return(LuaDLL.toluaL_exception(L, e));
     }
 }