using UnityEngine; using System.Collections; using UnityEngine.Experimental.UIElements; using TMPro; public class MenuToggle : MonoBehaviour { public GameObject Canvas; public GameObject Button; void Start() { Canvas.gameObject.SetActive(false); } public void changeCanvasProperty() { Canvas.gameObject.SetActive(true); } public void changeButtonsProperty() { Button.gameObject.SetActive(false); } }