public static bool EndCheck(AssetBundleBuildIgnoreRule rule, string p) { if (rule == null) { return(true); } foreach (var s in rule.IgnoreEndSuffixs) { if (p.EndsWith(s)) { return(false); } } return(true); }
public static bool ContainCheck(AssetBundleBuildIgnoreRule rule, string p) { if (rule == null) { return(true); } foreach (var s in rule.IgnoreContains) { if (p.Contains(s)) { return(false); } } return(true); }