mirror of
https://github.com/MirrorNetworking/Mirror.git
synced 2024-11-18 02:50:32 +00:00
use C#7 out variable declaration
This commit is contained in:
parent
9f21421d33
commit
505d2b85ad
@ -91,9 +91,7 @@ void ProcessInternalMessages()
|
||||
internal void InvokeBytesOnClient(byte[] buffer)
|
||||
{
|
||||
// unpack message and post to internal list for processing
|
||||
ushort msgType;
|
||||
byte[] content;
|
||||
if (Protocol.UnpackMessage(buffer, out msgType, out content))
|
||||
if (Protocol.UnpackMessage(buffer, out ushort msgType, out byte[] content))
|
||||
{
|
||||
PostInternalMessage((short)msgType, content);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user