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); }
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); }