mirror of
https://github.com/MirrorNetworking/Mirror.git
synced 2024-11-18 11:00: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)
|
internal void InvokeBytesOnClient(byte[] buffer)
|
||||||
{
|
{
|
||||||
// unpack message and post to internal list for processing
|
// unpack message and post to internal list for processing
|
||||||
ushort msgType;
|
if (Protocol.UnpackMessage(buffer, out ushort msgType, out byte[] content))
|
||||||
byte[] content;
|
|
||||||
if (Protocol.UnpackMessage(buffer, out msgType, out content))
|
|
||||||
{
|
{
|
||||||
PostInternalMessage((short)msgType, content);
|
PostInternalMessage((short)msgType, content);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user