private void OnDelayExecute() { this.m_isDelaying = false; if (0 == m_type) { GameEvents.UI_Guid_Event.OnUIEnableClick.SafeInvoke(true); long talkId = long.Parse(this.m_param); GameEvents.UIEvents.UI_Talk_Event.OnTalkFinish += OnTalkFinish; TalkUIHelper.OnStartTalk(talkId); } else if (1 == m_type) { ProloguePlayVideoManager.PlayVideo(m_param); OnDestory(); } else if (2 == m_type) { CommonHelper.OpenEnterGameSceneUI(long.Parse(m_param)); OnDestory(); } //else if (3 == m_type) //{ // EventGameUIAssist.BeginEventGame(long.Parse(m_param)); // OnDestory(); //} }
private void OpenUI(GUIFrame frame) { string frameName = frame.ResName; if (frameName.Equals(UIDefine.UI_SYNC_LOADING)) { return; } if (frameName.Equals(UIDefine.UI_GUEST_LOGIN) || frameName.Equals(UIDefine.UI_GUIDLOGIN)) { ProloguePlayVideoManager.UnRegisterGuest(); } if (!m_OpenUI.ContainsKey(frameName)) { m_OpenUI.Add(frameName, frame); OnTryStart(); } else { m_OpenUI[frameName] = frame; } }