NetworkClient: improve 'found null entry' message to not sound the same as on the server

This commit is contained in:
vis2k 2022-12-14 18:30:16 +01:00
parent fe66afd27a
commit 69ac95e55e

View File

@ -1485,9 +1485,8 @@ static void Broadcast()
}
// spawned list should have no null entries because we
// always call Remove in OnObjectDestroy everywhere.
// if it does have null then someone used
// GameObject.Destroy instead of NetworkServer.Destroy.
else Debug.LogWarning($"Found 'null' entry in observing list for connectionId={connection.connectionId}. Please call NetworkServer.Destroy to destroy networked objects. Don't use GameObject.Destroy.");
// if it does have null then we missed something.
else Debug.LogWarning($"Found 'null' entry in owned list for client. This is unexpected behaviour.");
}
}