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