LuaGC() 공개 메소드

public LuaGC ( ) : void
리턴 void
예제 #1
0
파일: Util.cs 프로젝트: zhanpang/test_tank
        /// <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));
     }
 }