bool isLowBatteryAlarm; //是否低电告警 void Start() { if (infoUi == null) { infoUi = GetComponentInParent <PersonInfoUI>(); } }
/// <summary> /// 初始化图标 /// </summary> public void InitSprites() { if (infoUi == null) { infoUi = GetComponentInParent <PersonInfoUI>(); } PersonInfoUIState stateT = infoUi.state; SwitchStateSprite(stateT); }
///// <summary> ///// 非人员告警界面 ///// </summary> //public GameObject Window; //public CircleImage circleImage; void Start() { PersonInfoUI = gameObject.GetComponentInParent <PersonInfoUI>(); }
void Start() { PersonInfoUI = gameObject.GetComponentInParent <PersonInfoUI>(); AlarmToggle.onValueChanged.AddListener(ShowPersonnelAlarm); }