Esempio n. 1
0
    void GiveUpOK()
    {
        CG_SHENQI_SAVEATTR packet = (CG_SHENQI_SAVEATTR)PacketDistributed.CreatePacket(MessageID.PACKET_CG_SHENQI_SAVEATTR);

        packet.Savetype = (int)CG_SHENQI_SAVEATTR.SAVETYPE.SAVE_CANCEL;
        packet.SendPacket();
        m_ShowNewAttrRoot.SetActive(false);
    }
Esempio n. 2
0
        public uint Execute(PacketDistributed ipacket)
        {
            CG_SHENQI_SAVEATTR packet = (CG_SHENQI_SAVEATTR )ipacket;

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