Skip to content

Commit 2f6df55

Browse files
style
One last adjustment to the comment over the area fixed.
1 parent 709f6d0 commit 2f6df55

File tree

1 file changed

+4
-4
lines changed
  • com.unity.netcode.gameobjects/Runtime/NetworkVariable/Collections

1 file changed

+4
-4
lines changed

com.unity.netcode.gameobjects/Runtime/NetworkVariable/Collections/NetworkList.cs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -67,10 +67,10 @@ internal override void OnSpawned()
6767
// -- The last sent time plus the max send time period is less than the current time.
6868
// - User script has modified the list during spawn.
6969
// - This instance is on the spawn authority side.
70-
// Then by the time the NetworkObject is finished spawning (on the same frame), then go
71-
// ahead and reset the dirty related properties and last sent time to prevent duplicate
72-
// entries from being sent (i.e. CreateObjectMessage will contain the changes so we
73-
// don't need to send a proceeding NetworkVariableDeltaMessage).
70+
// When the NetworkObject is finished spawning (on the same frame), go ahead and reset
71+
// the dirty related properties and last sent time to prevent duplicate entries from
72+
// being sent (i.e. CreateObjectMessage will contain the changes so we don't need to
73+
// send a proceeding NetworkVariableDeltaMessage).
7474
if (IsDirty() && CanSend() && m_NetworkBehaviour.HasAuthority)
7575
{
7676
UpdateLastSentTime();

0 commit comments

Comments
 (0)