コード例 #1
0
    private void ShowOtherTips()
    {
        int count = this.m_MatchUrlAction.Count;

        if (count > 0)
        {
            for (int i = 0; i < count; i++)
            {
                UrlAction urlAction = this.m_MatchUrlAction[i];
                if (urlAction != null)
                {
                    urlAction.Execute();
                }
            }
        }
        if (Singleton <GameStateCtrl> .instance.GetCurrentState() is LobbyState)
        {
            CRoleInfo masterRoleInfo = Singleton <CRoleInfoManager> .GetInstance().GetMasterRoleInfo();

            if (masterRoleInfo != null && ActivitySys.NeedShowWhenLogin() && !MonoSingleton <NewbieGuideManager> .GetInstance().isNewbieGuiding)
            {
                ActivitySys.UpdateLoginShowCnt();
                Singleton <CUIEventManager> .GetInstance().DispatchUIEvent(enUIEventID.Activity_OpenForm);
            }
            else
            {
                MonoSingleton <NobeSys> .GetInstance().ShowDelayNobeLoseTipsInfo();

                MonoSingleton <PandroaSys> .GetInstance().ShowPopNews();
            }
        }
    }
コード例 #2
0
    private void ShowOtherTips()
    {
        if (Singleton <GameStateCtrl> .get_instance().GetCurrentState() is LobbyState)
        {
            CRoleInfo masterRoleInfo = Singleton <CRoleInfoManager> .GetInstance().GetMasterRoleInfo();

            if (masterRoleInfo != null && ActivitySys.NeedShowWhenLogin() && !MonoSingleton <NewbieGuideManager> .GetInstance().isNewbieGuiding)
            {
                ActivitySys.UpdateLoginShowCnt();
                Singleton <CUIEventManager> .GetInstance().DispatchUIEvent(enUIEventID.Activity_OpenForm);
            }
            else
            {
                MonoSingleton <NobeSys> .GetInstance().ShowDelayNobeLoseTipsInfo();

                MonoSingleton <PandroaSys> .GetInstance().ShowPopNews();
            }
        }
    }
コード例 #3
0
ファイル: NoticeSys.cs プロジェクト: wujiangu/wanshiwu0.1
    private void OnCloseIDIPForm(CUIEvent uiEvent)
    {
        if (this.m_Form != null)
        {
            Singleton <CUIManager> .GetInstance().CloseForm(this.m_Form);

            this.m_Form = null;
        }
        this.m_bShow = false;
        if (((this.m_ImageContent != null) && (this.m_ImageContent.sprite != null)) && this.m_bLoadImage)
        {
            UnityEngine.Object.Destroy(this.m_ImageContent.sprite);
        }
        if (this.m_NoticeDataList.Count > 0)
        {
            this.ShowNoticeWindow(0);
        }
        else if (((Singleton <GameStateCtrl> .instance.GetCurrentState() is LobbyState) && (Singleton <CRoleInfoManager> .GetInstance().GetMasterRoleInfo() != null)) && (ActivitySys.NeedShowWhenLogin() && !MonoSingleton <NewbieGuideManager> .GetInstance().isNewbieGuiding))
        {
            ActivitySys.UpdateLoginShowCnt();
            Singleton <CUIEventManager> .GetInstance().DispatchUIEvent(enUIEventID.Activity_OpenForm);
        }
    }