From 0a0c0d9383c110656a884c36a8f6542f9027af0d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E3=81=A8=E3=82=82=E3=81=9F=E3=81=93=20=28Tomotaka=20Ogino?= =?UTF-8?q?=29?= Date: Sat, 9 Dec 2017 16:02:51 +0900 Subject: [PATCH 1/2] =?UTF-8?q?2017.2=20=E3=81=A7=E8=AD=A6=E5=91=8A?= =?UTF-8?q?=E3=81=8C=E8=A1=A8=E7=A4=BA=E3=81=95=E3=82=8C=E3=82=8B=E5=95=8F?= =?UTF-8?q?=E9=A1=8C=E3=82=92=E4=BF=AE=E6=AD=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit https://unity3d.com/jp/unity/whats-new/unity-2017.2.0 より抜粋 > Web: Added UnityWebRequestAsyncOperation UnityWebRequest.SendWebRequest() API > Web: Obsoleted UnityWebRequest.Send() in favor of new SendWebRequest call. --- Assets/NCMBLeaderboardWebGL/Scripts/NCMBRestController.cs | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/Assets/NCMBLeaderboardWebGL/Scripts/NCMBRestController.cs b/Assets/NCMBLeaderboardWebGL/Scripts/NCMBRestController.cs index 4393afa..077c967 100644 --- a/Assets/NCMBLeaderboardWebGL/Scripts/NCMBRestController.cs +++ b/Assets/NCMBLeaderboardWebGL/Scripts/NCMBRestController.cs @@ -92,7 +92,11 @@ public IEnumerator Call(RequestType method, string path, NCMBDataStoreParamSet n request.downloadHandler = new DownloadHandlerBuffer(); +#if UNITY_2017_2_OR_NEWER + yield return request.SendWebRequest(); +#else yield return request.Send(); +#endif #if UNITY_2017_1_OR_NEWER if (request.isNetworkError) @@ -220,4 +224,4 @@ public DateTime createDateTime } } } -} \ No newline at end of file +} From 8dc963646c9c74bd5816ee3ed65905c2293e6837 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E3=81=A8=E3=82=82=E3=81=9F=E3=81=93=20=28Tomotaka=20Ogino?= =?UTF-8?q?=29?= Date: Sat, 9 Dec 2017 16:14:43 +0900 Subject: [PATCH 2/2] Update NCMBRestController.cs