summaryrefslogtreecommitdiff
path: root/Client/Assembly-CSharp/WaitForHostPopup.cs
blob: 5ccade54c3540c1501b15da3ed7f9b34d545b444 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
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);
	}
}