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
8cff5e3f7d
commit
3573294d33
@ -40,8 +40,7 @@ void Awake()
|
||||
|
||||
bool ProcessClientMessage()
|
||||
{
|
||||
Telepathy.Message message;
|
||||
if (client.GetNextMessage(out message))
|
||||
if (client.GetNextMessage(out Telepathy.Message message))
|
||||
{
|
||||
switch (message.eventType)
|
||||
{
|
||||
@ -86,8 +85,7 @@ public void LateUpdate()
|
||||
public override bool ServerSend(int connectionId, int channelId, byte[] data) { return server.Send(connectionId, data); }
|
||||
public bool ProcessServerMessage()
|
||||
{
|
||||
Telepathy.Message message;
|
||||
if (server.GetNextMessage(out message))
|
||||
if (server.GetNextMessage(out Telepathy.Message message))
|
||||
{
|
||||
switch (message.eventType)
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user