using System.Collections; using System.Collections.Generic; using UnityEngine; public class SuggestVisible : MonoBehaviour { private void OnEnable() { if (CurrentUserInfo.role != Role.参谋 &&CurrentUserInfo.role != Role.大队指挥 && CurrentUserInfo.role != Role.支队指挥 && CurrentUserInfo.role != Role.总队指挥) { gameObject.SetActive(false); } } }