using UnityEngine; public class MainMenu : MonoBehaviour { private GameObject canvas; // Start is called before the first frame update private void Start() { canvas = GameObject.Find("Canvas"); Cursor.lockState = CursorLockMode.None; } // Update is called once per frame private void Update() { } public void StartGame() { canvas.SetActive(false); Initiate.Fade("Tutorial", Color.black, 2.0f); } public void StartChaos() { canvas.SetActive(false); Initiate.Fade("Chaos", Color.black, 2.0f); } public void QuitGame() { Application.Quit(); } }