private TpDicInfo GetTpDicInfoByType(TpDicInfo par, DICTYPE type) { foreach (TpDicInfo dic in par.directorys) { if (type == DICTYPE.CocostudioType) { if (dic.beCocosStudioProject) { return(dic); } } else if (type == DICTYPE.MapType) { if (TPConfig.BeTmxMap(dic.directoryInfo.Name)) { return(dic); } } TpDicInfo sub = GetTpDicInfoByType(dic, type); if (sub != null) { return(sub); } } return(null); }
private TpDicInfo GetTpDicInfoByType(TpDicInfo par, DICTYPE type) { foreach (TpDicInfo dic in par.directorys) { if (type == DICTYPE.CocostudioType) { if (dic.beCocosStudioProject) { return dic; } } else if (type == DICTYPE.MapType) { if (TPConfig.BeTmxMap(dic.directoryInfo.Name)) { return dic; } } TpDicInfo sub = GetTpDicInfoByType(dic, type); if (sub != null) { return sub; } } return null; }