using System; using System.Collections; using System.Collections.Generic; using UnityEngine; using UnityEngine.UI; public class AllUserViewObj : MonoBehaviour { public Button returnBtn; // Start is called before the first frame update void Start() { returnBtn.onClick.AddListener(ClickOnReturn); } private void ClickOnReturn() { this.gameObject.SetActive(false); } }