From 06919496efbebb607b9747a608754bb09b1de004 Mon Sep 17 00:00:00 2001 From: Mike Seese Date: Thu, 31 Oct 2024 15:02:55 -0700 Subject: [PATCH] fix script compilation issues for Unity 6 --- .../Hathora.Cloud.Sdk/HathoraCloud/Utils/SpeakeasyHttpClient.cs | 1 + .../Hathora/Hathora.Cloud.Sdk/HathoraCloud/Utils/Utilities.cs | 2 ++ 2 files changed, 3 insertions(+) diff --git a/src/Assets/Hathora/Hathora.Cloud.Sdk/HathoraCloud/Utils/SpeakeasyHttpClient.cs b/src/Assets/Hathora/Hathora.Cloud.Sdk/HathoraCloud/Utils/SpeakeasyHttpClient.cs index 099360f1..8d6763d5 100644 --- a/src/Assets/Hathora/Hathora.Cloud.Sdk/HathoraCloud/Utils/SpeakeasyHttpClient.cs +++ b/src/Assets/Hathora/Hathora.Cloud.Sdk/HathoraCloud/Utils/SpeakeasyHttpClient.cs @@ -11,6 +11,7 @@ namespace HathoraCloud.Utils { using System.Collections.Generic; + using UnityEngine; using UnityEngine.Networking; using System.Threading.Tasks; diff --git a/src/Assets/Hathora/Hathora.Cloud.Sdk/HathoraCloud/Utils/Utilities.cs b/src/Assets/Hathora/Hathora.Cloud.Sdk/HathoraCloud/Utils/Utilities.cs index b8207296..4a51c9f2 100644 --- a/src/Assets/Hathora/Hathora.Cloud.Sdk/HathoraCloud/Utils/Utilities.cs +++ b/src/Assets/Hathora/Hathora.Cloud.Sdk/HathoraCloud/Utils/Utilities.cs @@ -312,6 +312,7 @@ public static string TemplateUrl(string template, Dictionary par } } +#if !UNITY_6000_0_OR_NEWER public static class ExtensionMethods { /// @@ -327,4 +328,5 @@ public static TaskAwaiter GetAwaiter(this AsyncOperation asyncOp) return ((Task)tcs.Task).GetAwaiter(); } } +#endif }