public void ShowFrame() { TimeModule.Instance.RemoveTimeaction(OnPostHideFrame); TimeModule.Instance.RemoveTimeaction(DestroyFrame); if (!Visible) { this.Visible = true; float duration = 0; if (OpenFrameParam.OpenUIWithAnimation) { foreach (UITweenerBase ut in uiTweens) { if (ut.gameObject.activeInHierarchy && ut.m_triggerType == UITweenerBase.TweenTriggerType.OnShow) { duration = Mathf.Max(duration, ut.Duration + ut.Delay); ut.ResetAndPlay(); } } } if (LogicHandler != null) { LogicHandler.OnShow(OpenFrameParam.Param, false); } TimeModule.Instance.SetTimeout(OnAfterShowFrameFinish, duration, false, false); if (OpenFrameParam.IsBlur) { EngineCoreEvents.UIEvent.BlurUIBackground(true); } } }