Skip to content

Commit 3eafb08

Browse files
committed
compatibility issues
1 parent 5b46bff commit 3eafb08

File tree

2 files changed

+2
-10
lines changed

2 files changed

+2
-10
lines changed

Assets/Examples/Bag/IconManager.cs

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff 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
{

Assets/Examples/BundleUsage/BundleUsageMain.cs

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff 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
{

0 commit comments

Comments
 (0)