diff --git a/source/PluginDev/Assets/GooglePlayGames/Editor/GPGSProjectSettings.cs b/source/PluginDev/Assets/GooglePlayGames/Editor/GPGSProjectSettings.cs index ac1983eb2..7729a21fe 100644 --- a/source/PluginDev/Assets/GooglePlayGames/Editor/GPGSProjectSettings.cs +++ b/source/PluginDev/Assets/GooglePlayGames/Editor/GPGSProjectSettings.cs @@ -20,7 +20,7 @@ namespace GooglePlayGames.Editor { using System.Collections.Generic; using System.IO; -#if UNITY_2017_1_OR_NEWER +#if UNITY_2017_3_OR_NEWER using UnityEngine.Networking; #else using UnityEngine; @@ -102,7 +102,7 @@ public string Get(string key, Dictionary overrides) } else if (mDict.ContainsKey(key)) { -#if UNITY_2017_1_OR_NEWER +#if UNITY_2017_3_OR_NEWER return UnityWebRequest.UnEscapeURL(mDict[key]); #else return WWW.UnEscapeURL(mDict[key]); @@ -118,7 +118,7 @@ public string Get(string key, string defaultValue) { if (mDict.ContainsKey(key)) { -#if UNITY_2017_1_OR_NEWER +#if UNITY_2017_3_OR_NEWER return UnityWebRequest.UnEscapeURL(mDict[key]); #else return WWW.UnEscapeURL(mDict[key]); @@ -147,7 +147,7 @@ public bool GetBool(string key) public void Set(string key, string val) { -#if UNITY_2017_1_OR_NEWER +#if UNITY_2017_3_OR_NEWER string escaped = UnityWebRequest.EscapeURL(val); #else string escaped = WWW.EscapeURL(val); diff --git a/source/PluginDev/Assets/GooglePlayGames/ISocialPlatform/PlayGamesUserProfile.cs b/source/PluginDev/Assets/GooglePlayGames/ISocialPlatform/PlayGamesUserProfile.cs index 509dffe8b..ba5850bb5 100644 --- a/source/PluginDev/Assets/GooglePlayGames/ISocialPlatform/PlayGamesUserProfile.cs +++ b/source/PluginDev/Assets/GooglePlayGames/ISocialPlatform/PlayGamesUserProfile.cs @@ -22,7 +22,7 @@ namespace GooglePlayGames using System.Collections; using GooglePlayGames.OurUtils; using UnityEngine; -#if UNITY_2017_1_OR_NEWER +#if UNITY_2017_2_OR_NEWER using UnityEngine.Networking; #endif using UnityEngine.SocialPlatforms; @@ -120,7 +120,7 @@ internal IEnumerator LoadImage() // avatar configured. if (!string.IsNullOrEmpty(AvatarURL)) { -#if UNITY_2017_1_OR_NEWER +#if UNITY_2017_2_OR_NEWER UnityWebRequest www = UnityWebRequestTexture.GetTexture(AvatarURL); www.SendWebRequest(); #else @@ -133,7 +133,7 @@ internal IEnumerator LoadImage() if (www.error == null) { -#if UNITY_2017_1_OR_NEWER +#if UNITY_2017_2_OR_NEWER this.mImage = DownloadHandlerTexture.GetContent(www); #else this.mImage = www.texture;