summaryrefslogtreecommitdiff
path: root/Client/Assembly-CSharp/WaitForHostPopup.cs
diff options
context:
space:
mode:
Diffstat (limited to 'Client/Assembly-CSharp/WaitForHostPopup.cs')
-rw-r--r--Client/Assembly-CSharp/WaitForHostPopup.cs27
1 files changed, 27 insertions, 0 deletions
diff --git a/Client/Assembly-CSharp/WaitForHostPopup.cs b/Client/Assembly-CSharp/WaitForHostPopup.cs
new file mode 100644
index 0000000..5ccade5
--- /dev/null
+++ b/Client/Assembly-CSharp/WaitForHostPopup.cs
@@ -0,0 +1,27 @@
+using System;
+using InnerNet;
+using UnityEngine;
+
+public class WaitForHostPopup : DestroyableSingleton<WaitForHostPopup>
+{
+ public GameObject Content;
+
+ public void Show()
+ {
+ if (AmongUsClient.Instance && AmongUsClient.Instance.ClientId > 0)
+ {
+ this.Content.SetActive(true);
+ }
+ }
+
+ public void ExitGame()
+ {
+ AmongUsClient.Instance.ExitGame(DisconnectReasons.ExitGame);
+ this.Content.SetActive(false);
+ }
+
+ public void Hide()
+ {
+ this.Content.SetActive(false);
+ }
+}