using System.Collections; using System.Collections.Generic; using UnityEngine; using UnityEngine.UI; public class BlackboardOne : MonoBehaviour { public Button btnReturn; void Start() { btnReturn.onClick.AddListener(OnBtnReturnClick); } // Update is called once per frame void Update() { } private void OnBtnReturnClick() { GameManager.Instance.ImgMask.SetActive(false); this.gameObject.SetActive(false); } }