public void ReleaseLuas() { if (luaCaching == null) { Logger.LogError("lua cache is null, can not release!"); return; } luaAsyncLoader.Dispose(); luaAsyncLoader = null; luaCaching = null; }
public LuaAsyncLoader LoadLuaAsync(string[] luaPaths) { luaAsyncLoader = LuaAsyncLoader.Get();; luaAsyncLoader.Init(luaPaths); return(luaAsyncLoader); }