三国卡牌客户端基础资源仓库
hch
2 天以前 a507d9d13c0c1d24b7739dc1284c8feba8bf9dbe
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
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
 
 
public class AssetSource
{
    public static bool isUseAssetBundle
    {
        get
        {
#if UNITY_EDITOR
            //本机测试下载资源 需拷贝基本文本资源到 Assets\StreamingAssets\android下,为了方便直接拷贝所有资源即可
            if (!PlayerPrefs.HasKey("InGameDownLoadTestEanble"))
            {
                return false;
            }
            else
            {
                return PlayerPrefs.GetInt("InGameDownLoadTestEanble") == 1;
            }
#else
            return true;
#endif
        }
    }
}