/// <summary> /// 从特定目录里读取lua的loader /// </summary> /// <param name="filePath">lua文件名</param> /// <returns></returns> private byte[] LuaPathLoader(ref string filePath) { string fullPath = null; RecursionFilePath(Application.streamingAssetsPath + "/Data/", filePath + ".lua.txt", out fullPath); if (string.IsNullOrEmpty(fullPath)) { LuaMVCDebug.DebugError("Load " + filePath + ".lua.txt" + " failed.Please check the file path."); } return(Encoding.UTF8.GetBytes(File.ReadAllText(fullPath))); }