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 } } }