public void Show() { UIShowHideHelper.ShowFromButtom(gameObject); if (RecordManager.tempRecord.historyInstrument.Where(x => x != null).Count() > 0) { HistoryButton.interactable = true; } else { HistoryButton.interactable = false; } }
/// <summary> /// 打开UI /// </summary> public override void OnOpen(params object[] args) { base.OnOpen(args); KeyboardManager.Instance.work = false; UIEntity.GetComponent <PreviewExp>()?.Show(); if (args.Length > 0) { if ((bool)args[0]) { UIShowHideHelper.ShowFromButtom(UIEntity); Main.m_UI.PlaceTopUI(GetType()); UIEntity.GetComponentInChildren <NextButtonOnPreviewConfirm>(true).gameObject.SetActive(false); UIEntity.GetComponentInChildren <BackButton>(true).inverse = true; UIEntity.GetComponentInChildren <BackButton>(true).UILogic = GetType(); } } else { UIEntity.GetComponentInChildren <NextButtonOnPreviewConfirm>(true).gameObject.SetActive(true); UIEntity.GetComponentInChildren <BackButton>(true).inverse = false; } }