use C#7 out variable declaration

This commit is contained in:
Paul Pacheco 2019-02-22 18:54:44 -06:00
parent 8cff5e3f7d
commit 3573294d33

View File

@ -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)
{