public static string GetPath(PathType type, string u3dPathOfnoasset) { switch (type) { case PathType.absPath: return(Application.get_dataPath() + u3dPathOfnoasset); case PathType.u3dPath_no_assets: return(u3dPathOfnoasset); case PathType.u3dPath_has_asset: { string path = PathSystem.GetPath(PathType.absPath, u3dPathOfnoasset); return(path.Substring(path.IndexOf("Assets"))); } case PathType.resourcesPath: if (u3dPathOfnoasset.Contains("/Resources/")) { return(u3dPathOfnoasset.Substring("/Resources/".get_Length())); } PathSystem.ShowError(); return(string.Empty); case PathType.SubPackageInfo: return(Path.Combine(Environment.get_CurrentDirectory(), string.Format("SubPackageInfo/{0}", u3dPathOfnoasset))); case PathType.ApkPath: return(PathUtil.Combine(new string[] { PathSystem.ApkDir, u3dPathOfnoasset })); case PathType.ApkPatchPath: return(PathUtil.Combine(new string[] { PathSystem.ApkPatchDir, u3dPathOfnoasset })); case PathType.ResPatch: return(PathUtil.Combine(new string[] { PathSystem.PersistentDataPath, "resPatch", u3dPathOfnoasset })); default: return(string.Empty); } }
public static string GetGameDataCsRoot(PathType type) { return(PathSystem.GetPath(type, PathSystem.RootOfU3DNoAssets.GameDataCsRoot)); }
public static string GetGameEffectPrefabRoot(PathType type) { return(PathSystem.GetPath(type, PathSystem.RootOfU3DNoAssets.GameEffectPrefabRoot)); }
public static string GetSceneRoot(PathType type) { return(PathSystem.GetPath(type, PathSystem.RootOfU3DNoAssets.RootOfScene)); }
private string GetNewPatchPath() { return(PathSystem.GetPath(PathType.ApkPatchPath, this.GetNewPatchName())); }
public static string GetSrcSpriteIconRoot(PathType type) { return(PathSystem.GetPath(type, PathSystem.RootOfU3DNoAssets.RootOfSrcSpriteIcon)); }
public static string GetFontRoot(PathType type) { return(PathSystem.GetPath(type, PathSystem.RootOfU3DNoAssets.FontPrefabRoot)); }
private string GetResPatchConfigPath() { return(PathSystem.GetPath(PathType.ResPatch, this.GetResPatchRelPath(UpdateManager.ResPathDir.config, string.Empty))); }
public static string GetShaderEffectRoot(PathType type) { return(PathSystem.GetPath(type, PathSystem.RootOfU3DNoAssets.RootOfShaderEffect)); }
public static string GetAudioRoot(PathType type) { return(PathSystem.GetPath(type, PathSystem.RootOfU3DNoAssets.AudioRoot)); }
public static string GetUIAnimRoot(PathType type) { return(PathSystem.GetPath(type, PathSystem.RootOfU3DNoAssets.RootOfUIAnim)); }
public static string GetReservedPrefabRoot(PathType type) { return(PathSystem.GetPath(type, PathSystem.RootOfU3DNoAssets.RootOfReserved)); }
public static string GetTPAtlasEffectRoot(PathType type) { return(PathSystem.GetPath(type, PathSystem.RootOfU3DNoAssets.RootOfTPUiEffect)); }
public static string GetSubPackageInfoPath(string fileName) { return(PathSystem.GetPath(PathType.SubPackageInfo, fileName)); }
public static string GetActorSrcAnimModelRoot(PathType type) { return(PathSystem.GetPath(type, PathSystem.RootOfU3DNoAssets.RootOfActorAnim2SrcModel)); }
private string GetResPatchDir(UpdateManager.ResPathDir type) { return(PathSystem.GetPath(PathType.ResPatch, type.ToString())); }
public static string GetActorPrefabRoot(PathType type) { return(PathSystem.GetPath(type, PathSystem.RootOfU3DNoAssets.RootOfActorPrefab)); }
private string GetResPatchPath(UpdateManager.ResPathDir type, string version) { return(PathSystem.GetPath(PathType.ResPatch, this.GetResPatchRelPath(type, version))); }
public static string GetActorAnimationRoot(PathType type) { return(PathSystem.GetPath(type, PathSystem.RootOfU3DNoAssets.RootOfActorAnimation)); }
private string GetPatchInfoPath() { return(PathSystem.GetPath(PathType.ApkPatchPath, PathSystem.ApkPatchInfoFileName)); }
public static string GetTextureShaderRoot(PathType type) { return(PathSystem.GetPath(type, PathSystem.RootOfU3DNoAssets.RootOfTextureShader)); }