/// <summary> /// Toggle值改变触发事件,超过人数限制警告触发 /// </summary> public void ToggleAlarm_OnValueChanged(bool b) { if (b) { toggle.isOn = false; UGUIMessageBox.Show("显示历史轨迹不能超过" + LocationHistoryUITool.GetLimitPersonNum() + "人!"); } }
/// <summary> /// 是否达到人数限制 /// </summary> public bool IsAchisevePersonsLimitNum() { bool islimitPersonNum = currentSelectPersonnels.Count < LocationHistoryUITool.GetLimitPersonNum(); if (islimitPersonNum) { return(false); } else { return(true); } }
/// <summary> /// 根据人数限制设置相关操作 /// </summary> public void SetPersonsLimitRelevant() { bool islimitPersonNum = currentSelectPersonnels.Count < LocationHistoryUITool.GetLimitPersonNum(); if (islimitPersonNum) { //SetSearchUIItemInteractable(true); SetSearchUIItemLimitAlam(false); } else { //SetSearchUIItemInteractable(false); SetSearchUIItemLimitAlam(true); } }