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