Ejemplo n.º 1
0
 /// <summary>
 /// 清理内存
 /// </summary>
 public static void ClearMemory()
 {
     GC.Collect(); Resources.UnloadUnusedAssets();
     QFrameworkLua.QLuaMgr mgr = QFrameworkLua.QLuaMgr.Instance;
     if (mgr != null)
     {
         mgr.LuaGC();
     }
 }
Ejemplo n.º 2
0
 /// <summary>
 /// 执行Lua方法
 /// </summary>
 public static object[] CallMethod(string module, string func, params object[] args)
 {
     QFrameworkLua.QLuaMgr luaMgr = QFramework.Instance.GetMgr <QFrameworkLua.QLuaMgr>();
     if (luaMgr == null)
     {
         return(null);
     }
     return(luaMgr.CallFunction(module + "." + func, args));
 }