Beispiel #1
0
    void BuyFashion(GameObject go)
    {
        CG_BUY_FASHION packet = (CG_BUY_FASHION)PacketDistributed.CreatePacket(MessageID.PACKET_CG_BUY_FASHION);

        packet.FashionID = m_curChooseFashion;
        packet.BuyType   = m_BuyType;
        packet.SendPacket();
        buySuitDialog.SetActive(false);
    }
Beispiel #2
0
        public uint Execute(PacketDistributed ipacket)
        {
            CG_BUY_FASHION packet = (CG_BUY_FASHION )ipacket;

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