File tree Expand file tree Collapse file tree 2 files changed +2
-10
lines changed Expand file tree Collapse file tree 2 files changed +2
-10
lines changed Original file line number Diff line number Diff line change @@ -90,17 +90,13 @@ IEnumerator Run()
9090 }
9191
9292 string url = _basePath + item . url + ".ab" ;
93- #if UNITY_5_4_OR_NEWER
93+ #if UNITY_2017_2_OR_NEWER
9494#if UNITY_2018_1_OR_NEWER
9595 UnityWebRequest www = UnityWebRequestAssetBundle . GetAssetBundle ( url ) ;
9696#else
9797 UnityWebRequest www = UnityWebRequest . GetAssetBundle ( url ) ;
9898#endif
99- #if UNITY_2017_2_OR_NEWER
10099 yield return www . SendWebRequest ( ) ;
101- #else
102- yield return www . Send ( ) ;
103- #endif
104100
105101 if ( ! www . isNetworkError && ! www . isHttpError )
106102 {
Original file line number Diff line number Diff line change @@ -27,17 +27,13 @@ IEnumerator LoadUIPackage()
2727 if ( Application . platform != RuntimePlatform . Android )
2828 url = "file:///" + url ;
2929
30- #if UNITY_5_4_OR_NEWER
30+ #if UNITY_2017_2_OR_NEWER
3131#if UNITY_2018_1_OR_NEWER
3232 UnityWebRequest www = UnityWebRequestAssetBundle . GetAssetBundle ( url ) ;
3333#else
3434 UnityWebRequest www = UnityWebRequest . GetAssetBundle ( url ) ;
3535#endif
36- #if UNITY_2017_2_OR_NEWER
3736 yield return www . SendWebRequest ( ) ;
38- #else
39- yield return www . Send ( ) ;
40- #endif
4137
4238 if ( ! www . isNetworkError && ! www . isHttpError )
4339 {
You can’t perform that action at this time.
0 commit comments