Esempio n. 1
0
    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);
        }
    }
Esempio n. 2
0
    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();
            }
        }
    }
Esempio n. 3
0
    // 提升
    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);
            }
        }
    }
Esempio n. 4
0
    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();
        }
    }
Esempio n. 5
0
    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();
    }
Esempio n. 6
0
    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);
            }
        }
    }
Esempio n. 7
0
    // 吸收
    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);
        }
    }