예제 #1
0
        public override VNetMessage Clone()
        {
            VNetMessageLeaveSessionConfirm clone = (VNetMessageLeaveSessionConfirm)base.Clone();

            clone.clientUID = clientUID;
            return(clone);
        }
예제 #2
0
        public void OnClientsWantsToLeave(VNetMessageLeaveSession leaveRequest)
        {
            VNetMessageLeaveSessionConfirm confirm = new VNetMessageLeaveSessionConfirm();
            VNetClient client = leaveRequest._client;

            confirm.clientUID = client.GetUID();
            client.SendNetMessage(confirm, false);
            client.SendPacketToClient();
            RemoveClient(client);
        }
예제 #3
0
 public void OnClientLeaveConfirm(VNetMessageLeaveSessionConfirm leaveConfirm)
 {
     RemoveClient(leaveConfirm._client);
 }