private void CloseJoyStickTipInfo() { UIManager.CloseUI(UIInfo.JoyStickTipInfo); #if BOBJOYSTICK if (LoginUpdateInfo.m_IsShow) { LoginUpdateInfo.OpenUI(true); } #endif }
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 }
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); }
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 }
//弹出公告 public void OnNoticeClick() { LoginUpdateInfo.OpenUI(); }