void EquipOnClick() { Tab_FashionData m_curChooseFashionData = TableManager.GetFashionDataByID(m_curChooseFashion, 0); int m_curChooseFashionType = 0; if (m_curChooseFashionData == null) { return; } m_curChooseFashionType = m_curChooseFashionData.FashionType; if (m_curChooseFashionType == (int)FashionType.TYPE_ClOSETH) { CG_WEAR_FASHION packet = (CG_WEAR_FASHION)PacketDistributed.CreatePacket(MessageID.PACKET_CG_WEAR_FASHION); packet.FashionID = m_curChooseFashion; packet.SendPacket(); } else if (m_curChooseFashionType == (int)FashionType.TYPE_WING) { CG_ASK_EQUIPFLYWING PACK = (CG_ASK_EQUIPFLYWING)PacketDistributed.CreatePacket(MessageID.PACKET_CG_ASK_EQUIPFLYWING); PACK.SetFlyWingType((int)GlobeVar.FLY_SOCKET_TYPE.FLY_SOCKET_DREAM); PACK.SetFlyWingId1(m_curChooseFashionData.ItemVisualID); PACK.SendPacket(); //GameManager.gameManager.FlyWingMananger.DreamFlyWing(m_curChooseFashionData.ItemVisualID); } }
public void OnClickDream() { if (m_CurClickItemId != GlobeVar.INVALID_ID) { // GameManager.gameManager.FlyWingMananger.DreamFlyWing(m_CurClickItemId); if (!isHasDreamFlyWing(m_CurClickItemId)) { GUIData.AddNotifyData("#{11043}"); return; } if (GameManager.gameManager.FlyWingMananger.CurDreamFlyWingId == m_CurClickItemId) { CG_ASK_EQUIPFLYWING PACK = (CG_ASK_EQUIPFLYWING)PacketDistributed.CreatePacket(MessageID.PACKET_CG_ASK_EQUIPFLYWING); PACK.SetFlyWingType((int)GlobeVar.FLY_SOCKET_TYPE.FLY_SOCKET_CANCEL_DREAM); PACK.SendPacket(); } else { CG_ASK_EQUIPFLYWING PACK = (CG_ASK_EQUIPFLYWING)PacketDistributed.CreatePacket(MessageID.PACKET_CG_ASK_EQUIPFLYWING); PACK.SetFlyWingType((int)GlobeVar.FLY_SOCKET_TYPE.FLY_SOCKET_DREAM); PACK.SetFlyWingId1(m_CurClickItemId); PACK.SendPacket(); } } }
// 提升 public void OnClickUpataFlyWingBtn() { // 进阶 if (_IsAdvance()) { CG_ASK_EQUIPFLYWING packet = (CG_ASK_EQUIPFLYWING)PacketDistributed.CreatePacket(MessageID.PACKET_CG_ASK_EQUIPFLYWING); packet.SetFlyWingType((int)GlobeVar.FLY_SOCKET_TYPE.FLY_SOCKET_ADVANCE); packet.SetFlyWingId1(m_CurWantEquipFlyWingId); packet.SendPacket(); } else { if (_IsEnoughMoney()) { m_AbsortFlyWingBtn.SetActive(true); if (mFTEIndex == 2) { DoFTE(3); } } else { m_NoEnoughMoneyPrompt.SetActive(true); } } }
public void onUnEquipFlyWing() { CG_ASK_EQUIPFLYWING pack = (CG_ASK_EQUIPFLYWING)PacketDistributed.CreatePacket(MessageID.PACKET_CG_ASK_EQUIPFLYWING); pack.SetFlyWingType((int)GlobeVar.FLY_SOCKET_TYPE.FLY_SOCKET_UNEQUIP); pack.SendPacket(); // _onCombatChange(); }
public uint Execute(PacketDistributed ipacket) { CG_ASK_EQUIPFLYWING packet = (CG_ASK_EQUIPFLYWING )ipacket; if (null == packet) { return((uint)PACKET_EXE.PACKET_EXE_ERROR); } //enter your logic return((uint)PACKET_EXE.PACKET_EXE_CONTINUE); }
public void onEquipFlyWing() { if (m_CurWantEquipFlyWingId != GlobeVar.INVALID_ID) { CG_ASK_EQUIPFLYWING pack = (CG_ASK_EQUIPFLYWING)PacketDistributed.CreatePacket(MessageID.PACKET_CG_ASK_EQUIPFLYWING); pack.SetFlyWingType((int)GlobeVar.FLY_SOCKET_TYPE.FLY_SOCKET_EQUIP); pack.SetFlyWingId1(m_CurWantEquipFlyWingId); pack.SendPacket(); if (mFTEIndex == 1) { DoFTE(2); } } }
// 吸收 public void OnClickAbsortFlyWing() { m_AbsortFlyWingBtn.SetActive(false); CG_ASK_EQUIPFLYWING packet = (CG_ASK_EQUIPFLYWING)PacketDistributed.CreatePacket(MessageID.PACKET_CG_ASK_EQUIPFLYWING); packet.SetFlyWingType((int)GlobeVar.FLY_SOCKET_TYPE.FLY_SOCKET_ABSORT); packet.SetFlyWingId1(m_CurWantEquipFlyWingId); packet.SendPacket(); if (mFTEIndex == 3) { DoFTE(4); } }
public void OnChangeShowHide() { CG_ASK_EQUIPFLYWING packet = (CG_ASK_EQUIPFLYWING)PacketDistributed.CreatePacket(MessageID.PACKET_CG_ASK_EQUIPFLYWING); if (m_ChooseShowHide.value == true) { packet.SetFlyWingType((int)GlobeVar.FLY_SOCKET_TYPE.FLY_SOCKET_SHOWHIDE); packet.SetFlyWingId1(0); packet.SendPacket(); } else { packet.SetFlyWingType((int)GlobeVar.FLY_SOCKET_TYPE.FLY_SOCKET_SHOWHIDE); packet.SetFlyWingId1(1); packet.SendPacket(); } }