Skip to content

Commit 4b240fa

Browse files
committed
Added platform dependent code
1 parent d73a26f commit 4b240fa

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

Runtime/Client/LootLockerBaseServerAPI.cs

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,12 @@ IEnumerator coroutine()
105105

106106
LootLockerResponse response = new LootLockerResponse();
107107
response.statusCode = (int)webRequest.responseCode;
108+
#if UNITY_2020_1_OR_NEWER
108109
if (webRequest.result == UnityWebRequest.Result.ProtocolError || webRequest.result == UnityWebRequest.Result.ConnectionError || !string.IsNullOrEmpty(webRequest.error))
110+
#else
111+
if (webRequest.isHttpError || webRequest.isNetworkError || !string.IsNullOrEmpty(webRequest.error))
112+
#endif
113+
109114
{
110115
switch (webRequest.responseCode)
111116
{

0 commit comments

Comments
 (0)