Skip to content

Commit 5f81331

Browse files
fix: remove compare in networkvarible set (#1264)
* fix: remove compare in networkvarible set
1 parent 1caf29a commit 5f81331

File tree

1 file changed

+0
-6
lines changed

1 file changed

+0
-6
lines changed

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

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
using System.Collections.Generic;
21
using UnityEngine;
32
using System;
43

@@ -83,11 +82,6 @@ public virtual T Value
8382

8483
private protected void Set(T value)
8584
{
86-
if (EqualityComparer<T>.Default.Equals(m_InternalValue, value))
87-
{
88-
return;
89-
}
90-
9185
m_IsDirty = true;
9286
T previousValue = m_InternalValue;
9387
m_InternalValue = value;

0 commit comments

Comments
 (0)