public GameResourceData(GameBundleInfo bundleInfo, GameResInfo resInfo) { this.id = bundleInfo.id; this.type = bundleInfo.type; this.name = bundleInfo.name; this.assetbundleName = bundleInfo.assetbundle; this.resPath = resInfo.resPath; }
bool CheckRes(GameResType type, string name, out GameResInfo data) { data = GameTable.GetGameRes(type, name); if (data == null) { TTLoger.LogError("资源清单未找到资源 : " + name + ",请检查resEditor"); return(false); } return(true); }
// 检查资源表中是否有某个资源 public static bool HasGameRes(GameResType type, string name) { if (AppConst.DevelopMode) { GameResInfo info = GameTable.GetGameRes(type, name); return(info != null); } else { GameBundleInfo info = GameTable.GetGameBundleRes(type, name); return(info != null); } }