Exemple #1
0
    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);
        }
    }
Exemple #2
0
 public static string GetGameDataCsRoot(PathType type)
 {
     return(PathSystem.GetPath(type, PathSystem.RootOfU3DNoAssets.GameDataCsRoot));
 }
Exemple #3
0
 public static string GetGameEffectPrefabRoot(PathType type)
 {
     return(PathSystem.GetPath(type, PathSystem.RootOfU3DNoAssets.GameEffectPrefabRoot));
 }
Exemple #4
0
 public static string GetSceneRoot(PathType type)
 {
     return(PathSystem.GetPath(type, PathSystem.RootOfU3DNoAssets.RootOfScene));
 }
 private string GetNewPatchPath()
 {
     return(PathSystem.GetPath(PathType.ApkPatchPath, this.GetNewPatchName()));
 }
Exemple #6
0
 public static string GetSrcSpriteIconRoot(PathType type)
 {
     return(PathSystem.GetPath(type, PathSystem.RootOfU3DNoAssets.RootOfSrcSpriteIcon));
 }
Exemple #7
0
 public static string GetFontRoot(PathType type)
 {
     return(PathSystem.GetPath(type, PathSystem.RootOfU3DNoAssets.FontPrefabRoot));
 }
Exemple #8
0
 private string GetResPatchConfigPath()
 {
     return(PathSystem.GetPath(PathType.ResPatch, this.GetResPatchRelPath(UpdateManager.ResPathDir.config, string.Empty)));
 }
Exemple #9
0
 public static string GetShaderEffectRoot(PathType type)
 {
     return(PathSystem.GetPath(type, PathSystem.RootOfU3DNoAssets.RootOfShaderEffect));
 }
Exemple #10
0
 public static string GetAudioRoot(PathType type)
 {
     return(PathSystem.GetPath(type, PathSystem.RootOfU3DNoAssets.AudioRoot));
 }
Exemple #11
0
 public static string GetUIAnimRoot(PathType type)
 {
     return(PathSystem.GetPath(type, PathSystem.RootOfU3DNoAssets.RootOfUIAnim));
 }
Exemple #12
0
 public static string GetReservedPrefabRoot(PathType type)
 {
     return(PathSystem.GetPath(type, PathSystem.RootOfU3DNoAssets.RootOfReserved));
 }
Exemple #13
0
 public static string GetTPAtlasEffectRoot(PathType type)
 {
     return(PathSystem.GetPath(type, PathSystem.RootOfU3DNoAssets.RootOfTPUiEffect));
 }
Exemple #14
0
 public static string GetSubPackageInfoPath(string fileName)
 {
     return(PathSystem.GetPath(PathType.SubPackageInfo, fileName));
 }
Exemple #15
0
 public static string GetActorSrcAnimModelRoot(PathType type)
 {
     return(PathSystem.GetPath(type, PathSystem.RootOfU3DNoAssets.RootOfActorAnim2SrcModel));
 }
Exemple #16
0
 private string GetResPatchDir(UpdateManager.ResPathDir type)
 {
     return(PathSystem.GetPath(PathType.ResPatch, type.ToString()));
 }
Exemple #17
0
 public static string GetActorPrefabRoot(PathType type)
 {
     return(PathSystem.GetPath(type, PathSystem.RootOfU3DNoAssets.RootOfActorPrefab));
 }
Exemple #18
0
 private string GetResPatchPath(UpdateManager.ResPathDir type, string version)
 {
     return(PathSystem.GetPath(PathType.ResPatch, this.GetResPatchRelPath(type, version)));
 }
Exemple #19
0
 public static string GetActorAnimationRoot(PathType type)
 {
     return(PathSystem.GetPath(type, PathSystem.RootOfU3DNoAssets.RootOfActorAnimation));
 }
 private string GetPatchInfoPath()
 {
     return(PathSystem.GetPath(PathType.ApkPatchPath, PathSystem.ApkPatchInfoFileName));
 }
Exemple #21
0
 public static string GetTextureShaderRoot(PathType type)
 {
     return(PathSystem.GetPath(type, PathSystem.RootOfU3DNoAssets.RootOfTextureShader));
 }