summaryrefslogtreecommitdiff
path: root/GameCode/MainMenuHandler.cs
blob: 2be5e82ac7141672685e97e382823e9a73b0b785 (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
using UnityEngine;

public class MainMenuHandler : MonoBehaviour
{
	public static MainMenuHandler instance;

	public bool isOpen = true;

	private void Awake()
	{
		instance = this;
	}

	public void Close()
	{
		isOpen = false;
		base.transform.GetChild(0).gameObject.SetActive(value: false);
	}

	public void Open()
	{
		isOpen = true;
		base.transform.GetChild(0).gameObject.SetActive(value: true);
	}
}