Skip to content

Commit db50def

Browse files
committed
code review comments
1 parent eaf54a1 commit db50def

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

com.unity.netcode.gameobjects/TestHelpers/Runtime/NetcodeIntegrationTest.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -147,7 +147,7 @@ public enum HostOrServer
147147
protected NetworkManager[] m_NetworkManagers;
148148

149149
/// <summary>
150-
/// Gets the current authority.
150+
/// Gets the current authority of the network session.
151151
/// When using the hosted CMB service this will be the client who is the session owner.
152152
/// Otherwise, returns the server <see cref="NetworkManager"/>
153153
/// </summary>
@@ -359,6 +359,7 @@ protected virtual void OnOneTimeSetup()
359359
public void OneTimeSetup()
360360
{
361361
Application.runInBackground = true;
362+
m_NumberOfClients = NumberOfClients;
362363
IsRunning = true;
363364
m_EnableVerboseDebug = OnSetVerboseDebug();
364365
IntegrationTestSceneHandler.VerboseDebugMode = m_EnableVerboseDebug;
@@ -414,7 +415,6 @@ public IEnumerator SetUp()
414415
{
415416
VerboseDebugLog.Clear();
416417
VerboseDebug($"Entering {nameof(SetUp)}");
417-
m_NumberOfClients = NumberOfClients;
418418
NetcodeLogAssert = new NetcodeLogAssert();
419419
if (m_EnableTimeTravel)
420420
{

0 commit comments

Comments
 (0)