mirror of
https://github.com/MirrorNetworking/Mirror.git
synced 2024-11-18 02:50:32 +00:00
OnCommandMessage syntax improved
This commit is contained in:
parent
2147d86013
commit
0121d2ad8f
@ -847,8 +847,7 @@ static void OnCommandMessage(NetworkMessage netMsg)
|
|||||||
CommandMessage message = netMsg.ReadMessage<CommandMessage>();
|
CommandMessage message = netMsg.ReadMessage<CommandMessage>();
|
||||||
|
|
||||||
NetworkIdentity identity;
|
NetworkIdentity identity;
|
||||||
NetworkIdentity.spawned.TryGetValue(message.netId, out identity);
|
if (!NetworkIdentity.spawned.TryGetValue(message.netId, out identity))
|
||||||
if (identity == null)
|
|
||||||
{
|
{
|
||||||
Debug.LogWarning("Spawned object not found when handling Command message [netId=" + message.netId + "]");
|
Debug.LogWarning("Spawned object not found when handling Command message [netId=" + message.netId + "]");
|
||||||
return;
|
return;
|
||||||
|
Loading…
Reference in New Issue
Block a user