Fix not being able to kick players

This commit is contained in:
cxxpxr 2021-07-29 16:09:15 -04:00
parent 68ad9ef8fe
commit 10f47908fa
2 changed files with 3 additions and 0 deletions

View file

@ -1,3 +1,4 @@
using System;
using UnityEngine;
using UnityEngine.AI;

View file

@ -160,6 +160,7 @@ namespace LightReflectiveMirror
int pos = 0;
_clientSendBuffer.WriteByte(ref pos, (byte)OpCodes.KickPlayer);
_clientSendBuffer.WriteInt(ref pos, relayId);
clientToServerTransport.ClientSend(0, new ArraySegment<byte>(_clientSendBuffer, 0, pos));
return true;
}
@ -178,6 +179,7 @@ namespace LightReflectiveMirror
int pos = 0;
_clientSendBuffer.WriteByte(ref pos, (byte)OpCodes.KickPlayer);
_clientSendBuffer.WriteInt(ref pos, relayId);
clientToServerTransport.ClientSend(new ArraySegment<byte>(_clientSendBuffer, 0, pos), 0);
return;
}