IEnumerator OpenDelay(AppWindow window, UIParamInfo info) { while (!window.IsStarted) { yield return(null); } window.AddListeners(); window.Appear(info); }
IEnumerator ShowInspector(AppWindow window, UIParamInfo info) { isTween = true; if (mShowVfx != null) { mShowVfx.gameObject.SetActive(true); mShowVfx.Play(); } if (mCloseVfx != null) { mCloseVfx.Stop(); mCloseVfx.gameObject.SetActive(false); } window.AddListeners(); yield return(new WaitForSeconds(openDelay)); window.Appear(info); isTween = false; }
private static T ShowWindow <T>(UIParamInfo info, bool effect, bool mask = true) where T : AppWindow { if (AlertController.Instance == null) { Debug.LogError("AlertController is not find!!!"); } if (Alert.HasWindow) { if (AlertController.Instance.IsOpened <T>()) { AppWindow tmp = AlertController.Instance.GetCurrentWindow <T>(); tmp.Appear(info); return(tmp as T); } AlertController.Instance.CloseNow(); return(AlertController.Instance.ShowNow <T>(info, effect, true)); } else { return(AlertController.Instance.ShowWindow <T>(info, effect, mask)); } }