checkadmin.cs 447 B

123456789101112131415161718192021
  1. using System.Collections;
  2. using System.Collections.Generic;
  3. using UnityEngine;
  4. public class checkadmin : MonoBehaviour
  5. {
  6. // Start is called before the first frame update
  7. private void OnEnable() {
  8. Debug.Log("DataManager.admin===>"+DataManager.admin);
  9. if(DataManager.admin!=1)
  10. {
  11. this.gameObject.SetActive(false);
  12. }
  13. }
  14. // Update is called once per frame
  15. void Update()
  16. {
  17. }
  18. }