mirror of
https://github.com/MirrorNetworking/Mirror.git
synced 2024-11-18 11:00:32 +00:00
Simplify
This commit is contained in:
parent
4bc1c3eb20
commit
e00e8195bb
@ -216,9 +216,7 @@ public bool Send<T>(T msg, int channelId = Channels.DefaultReliable) where T : I
|
|||||||
// pack message and send allocation free
|
// pack message and send allocation free
|
||||||
MessagePacker.Pack(msg, writer);
|
MessagePacker.Pack(msg, writer);
|
||||||
NetworkDiagnostics.OnSend(msg, channelId, writer.Position, 1);
|
NetworkDiagnostics.OnSend(msg, channelId, writer.Position, 1);
|
||||||
bool result = Send(writer.ToArraySegment(), channelId);
|
return Send(writer.ToArraySegment(), channelId);
|
||||||
|
|
||||||
return result;
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user