using System.Collections; using System.Collections.Generic; using UnityEngine; public class checkadmin : MonoBehaviour { // Start is called before the first frame update private void OnEnable() { Debug.Log("DataManager.admin===>"+DataManager.admin); if(DataManager.admin!=1) { this.gameObject.SetActive(false); } } // Update is called once per frame void Update() { } }