public override VNetMessage Clone() { VNetMessageLeaveSessionConfirm clone = (VNetMessageLeaveSessionConfirm)base.Clone(); clone.clientUID = clientUID; return(clone); }
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); }
public void OnClientLeaveConfirm(VNetMessageLeaveSessionConfirm leaveConfirm) { RemoveClient(leaveConfirm._client); }