少年修仙传客户端代码仓库
client_linchunjie
2019-04-17 11997ece0dc4980eba3dd8889d37adb8376e14cb
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
using UnityEngine;
 
[XLua.LuaCallCSharp]
public class ResourcesPath : Singleton<ResourcesPath>
{
 
    public const string AssetDependentFileBundleName =
#if UNITY_ANDROID
        "android";
#elif UNITY_IOS
        "ios";
#else
        "standalone";
#endif
 
    public const string windowFileBundleName = "ui/window";
    public const string uiprefabFileBundleName = "ui/prefab";
 
    public readonly static string ResourcesOutPath = Application.dataPath + "/ResourcesOut/";
    public const string ResourcesOutAssetPath = "Assets/ResourcesOut/";
    public const string AssetDependentFileAssetName = "AssetBundleManifest";
    public const string ABExtention = ".unity3d";
 
    public readonly string StreamingAssetPath;
    public readonly string ExternalStorePath;
 
    #region 具体asset资源读取路径
 
    public static readonly string MOB_FOLDER_NAME = "mob/";
    public static readonly string MOB_SUFFIX = "prefab_race_";
 
    public static readonly string EFFECT_Folder_Name = "effect/";
 
    public static readonly string UI_SPRITE_SUFFIX = "UI/Sprite";
    public static readonly string UI_WINDOW_SUFFIX = "UI/Window";
    public static readonly string UI_PRIORITYWINDOW_SUFFIX = "UI/PriorityWindow";
    public static readonly string UI_FONT_SUFFIX = "UI/Font";
    public static readonly string UI_PREFAB_SUFFIX = "UI/Prefab";
 
    public static readonly string CONFIG_FODLER = ResourcesOutPath + "refdata/Config";
 
    public static readonly string AUDIO_SUFFIX = "Audio/";
    public static readonly string LUA_FODLER = ResourcesOutPath + "Lua";
 
    #endregion
 
    public void Init()
    {
    }
 
    public ResourcesPath()
    {
#if UNITY_ANDROID 
        StreamingAssetPath = Application.streamingAssetsPath + "/android/";
#elif UNITY_IOS
        StreamingAssetPath = Application.streamingAssetsPath + "/ios/";
#elif UNITY_EDITOR
        StreamingAssetPath = Application.streamingAssetsPath + "/standalone/";
#endif
 
        ExternalStorePath = Application.persistentDataPath + "/";
 
        DebugEx.Log("Stream Path: " + StreamingAssetPath);
        DebugEx.Log("External Path: " + ExternalStorePath);
    }
}