示例#1
0
    private void CloseJoyStickTipInfo()
    {
        UIManager.CloseUI(UIInfo.JoyStickTipInfo);
#if BOBJOYSTICK
        if (LoginUpdateInfo.m_IsShow)
        {
            LoginUpdateInfo.OpenUI(true);
        }
#endif
    }
示例#2
0
    void Update()
    {
#if BOBJOYSTICK
        if (Engine.OSC.AbstractController.Instance.GetKeyDown(Engine.JoyUI.JoyControllerLogic.BTN_SELECT) || Engine.OSC.AbstractController.Instance.GetKeyDown(Engine.JoyUI.JoyControllerLogic.BTN_B))
        {
            CloseJoyStickTipInfo();
            Destroy(this);
            if (LoginUpdateInfo.m_IsShow)
            {
                LoginUpdateInfo.OpenUI(true);
            }
        }
#endif
    }
示例#3
0
        public uint Execute(PacketDistributed ipacket)
        {
            GC_UPDATENOTICEDATA packet = (GC_UPDATENOTICEDATA )ipacket;

            if (null == packet)
            {
                return((uint)PACKET_EXE.PACKET_EXE_ERROR);
            }
            //enter your logic

            LoginUpdateInfo.ClearNotice();
            for (int i = 0; i < packet.dataCount && i < packet.newsCount; i++)
            {
                LoginUpdateInfo.addNotice(packet.GetNews(i), packet.GetData(i));
            }


            return((uint)PACKET_EXE.PACKET_EXE_CONTINUE);
        }
示例#4
0
    void Start()
    {
        SwitchWindow((int)Window.ServerTop);
        //GCGame.Utils.PlaySceneMusic(181);    //scene_login

#if BOBJOYSTICK
        if (PlatformHelper.GetChannelType() == PlatformHelper.ChannelType.ANDROID_MITV)
        {
            // 盒子的时候提示按键
            JoystickTipInfo.ShowTip();
        }
#else
        if (LoginUpdateInfo.m_IsShow)
        {
            LoginUpdateInfo.OpenUI(true);

            //if (m_ForceGengXin != null)
            //{
            //    m_ForceGengXin.SetActive(true);

            //    LoginUpdateInfo loginUpdateInfo = m_ForceGengXin.GetComponent<LoginUpdateInfo>();
            //    if (loginUpdateInfo != null)
            //    {
            //        m_ServerTopWindow.gameObject.SetActive(false);

            //        loginUpdateInfo.ShowUpdateInfo();
            //        loginUpdateInfo = null;
            //    }
            //    else
            //    {
            //        m_ForceGengXin.SetActive(false);
            //    }
            //}
        }
#endif



#if BOBJOYSTICK
        MapForceEnterTipUI();
#endif
    }
示例#5
0
 //弹出公告
 public void OnNoticeClick()
 {
     LoginUpdateInfo.OpenUI();
 }