Skip to content

Commit e0143f7

Browse files
style
Adding comment.
1 parent fecfe20 commit e0143f7

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

com.unity.netcode.gameobjects/Runtime/Messaging/Messages/NetworkTransformMessage.cs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -147,6 +147,9 @@ public bool Deserialize(FastBufferReader reader, ref NetworkContext context, int
147147

148148
if (networkManager.DistributedAuthorityMode && networkManager.DAHost)
149149
{
150+
// Using foreach loop as opposed to for loop using targetCount as maximum
151+
// observers to doulbe check that the number of observers in the list of
152+
// observers matches the targetCount.
150153
var count = 0;
151154
foreach (var targetId in networkObject.Observers)
152155
{

0 commit comments

Comments
 (0)