Skip to content

Commit 4d11fef

Browse files
committed
Fix variable casing
1 parent 55591ea commit 4d11fef

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

com.unity.netcode.gameobjects/Tests/Runtime/DistributedAuthority/DistributedAuthorityCodecTests.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ private static ushort GetPortToBind()
6262
internal class TestNetworkComponent : NetworkBehaviour
6363
{
6464
public NetworkList<int> MyNetworkList = new NetworkList<int>(new List<int> { 1, 2, 3 });
65-
public NetworkVariable<int> myNetworkVar = new NetworkVariable<int>(3);
65+
public NetworkVariable<int> MyNetworkVar = new NetworkVariable<int>(3);
6666

6767
[Rpc(SendTo.Authority)]
6868
public void TestAuthorityRpc(byte[] _)
@@ -260,9 +260,9 @@ public IEnumerator NetworkVariableDelta_WithValueUpdate()
260260
var component = instance.GetComponent<TestNetworkComponent>();
261261

262262
var newValue = 5;
263-
component.myNetworkVar.Value = newValue;
263+
component.MyNetworkVar.Value = newValue;
264264
yield return m_ClientCodecHook.WaitForMessageReceived<NetworkVariableDeltaMessage>();
265-
Assert.AreEqual(newValue, component.myNetworkVar.Value);
265+
Assert.AreEqual(newValue, component.MyNetworkVar.Value);
266266
}
267267

268268
[UnityTest]

0 commit comments

Comments
 (0)