protected virtual UIBase ReadyToShowBaseUI(UIID id, ShowUIData data = null) { return(null); }
/// <summary> /// 延时显示界面 /// </summary> /// <param name = "delayTime"> 延时时间 </param> /// <param name = "id"> 界面id </param> /// <param name = "data"> 显示数据 </param> public virtual void ShowUIDelay(float delayTime, UIID id, ShowUIData data = null) { StartCoroutine(_ShowUIDelay(delayTime, id, data)); }
private IEnumerator _ShowUIDelay(float delayTime, UIID id, ShowUIData data = null) { yield return(new WaitForSeconds(delayTime)); ShowUI(id, data); }
/// <summary> /// 显示界面 /// </summary> /// <param name = "id"> 界面id </param> /// <param name = "data"> 显示数据 </param> public virtual void ShowUI(UIID id, ShowUIData data = null) { }