Fix not being able to kick players
This commit is contained in:
parent
68ad9ef8fe
commit
10f47908fa
2 changed files with 3 additions and 0 deletions
|
|
@ -1,3 +1,4 @@
|
|||
using System;
|
||||
using UnityEngine;
|
||||
using UnityEngine.AI;
|
||||
|
||||
|
|
|
|||
|
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue