Skip to content

Commit 11f49ff

Browse files
fix
Removing using directive. Reverting changes to NetworkVariableCollectionsTests
1 parent d118767 commit 11f49ff

File tree

2 files changed

+23
-23
lines changed

2 files changed

+23
-23
lines changed

com.unity.netcode.gameobjects/Runtime/Messaging/MessageDelivery.cs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
using System;
22
using System.Collections.Generic;
33
using Unity.Netcode;
4-
using Unity.Netcode.Components;
54
using UnityEditor;
65
using UnityEngine;
76

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

Lines changed: 23 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -781,36 +781,37 @@ public IEnumerator TestDictionaryCollections()
781781
}
782782

783783
m_CurrentKey = 1000;
784-
785-
VerboseDebug(">>>>>>>>>>>>>>>>>>>>>>>>>>>>> Init Values <<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<");
786-
foreach (var client in m_Clients)
784+
if (m_EnableDebug)
787785
{
788-
compDictionary = client.LocalClient.PlayerObject.GetComponent<DictionaryTestHelper>();
789-
compDictionary.InitValues();
790-
compDictionaryServer = m_PlayerNetworkObjects[NetworkManager.ServerClientId][client.LocalClientId].GetComponent<DictionaryTestHelper>();
791-
compDictionaryServer.InitValues();
792-
}
793-
VerboseDebug(">>>>>>>>>>>>>>>>>>>>>>>>>>>>> Init Check <<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<");
794-
var count = 0;
795-
while (count < 3)
796-
{
797-
m_InitializedStatus.Clear();
786+
VerboseDebug(">>>>>>>>>>>>>>>>>>>>>>>>>>>>> Init Values <<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<");
798787
foreach (var client in m_Clients)
799788
{
800-
yield return ValidateClients(client, true);
789+
compDictionary = client.LocalClient.PlayerObject.GetComponent<DictionaryTestHelper>();
790+
compDictionary.InitValues();
791+
compDictionaryServer = m_PlayerNetworkObjects[NetworkManager.ServerClientId][client.LocalClientId].GetComponent<DictionaryTestHelper>();
792+
compDictionaryServer.InitValues();
801793
}
802-
if (m_IsInitialized)
794+
VerboseDebug(">>>>>>>>>>>>>>>>>>>>>>>>>>>>> Init Check <<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<");
795+
var count = 0;
796+
while (count < 3)
803797
{
804-
break;
798+
m_InitializedStatus.Clear();
799+
foreach (var client in m_Clients)
800+
{
801+
yield return ValidateClients(client, true);
802+
}
803+
if (m_IsInitialized)
804+
{
805+
break;
806+
}
807+
count++;
808+
m_Stage = 0;
805809
}
806-
count++;
807-
m_Stage = 0;
810+
Assert.IsTrue(m_IsInitialized, $"Not all clients synchronized properly!\n {m_InitializedStatus.ToString()}");
811+
VerboseDebug(m_InitializedStatus.ToString());
812+
VerboseDebug(">>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>> BEGIN <<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<");
808813
}
809814

810-
Assert.IsTrue(m_IsInitialized, $"Not all clients synchronized properly!\n {m_InitializedStatus.ToString()}");
811-
VerboseDebug(m_InitializedStatus.ToString());
812-
813-
VerboseDebug(">>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>> BEGIN <<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<");
814815
foreach (var client in m_Clients)
815816
{
816817
///////////////////////////////////////////////////////////////////////////

0 commit comments

Comments
 (0)