AllUserViewObj.cs 420 B

1234567891011121314151617181920
  1. using System;
  2. using System.Collections;
  3. using System.Collections.Generic;
  4. using UnityEngine;
  5. using UnityEngine.UI;
  6. public class AllUserViewObj : MonoBehaviour
  7. {
  8. public Button returnBtn;
  9. // Start is called before the first frame update
  10. void Start()
  11. {
  12. returnBtn.onClick.AddListener(ClickOnReturn);
  13. }
  14. private void ClickOnReturn()
  15. {
  16. this.gameObject.SetActive(false);
  17. }
  18. }