File tree Expand file tree Collapse file tree 2 files changed +4
-2
lines changed
com.unity.netcode.gameobjects/Tests/Runtime Expand file tree Collapse file tree 2 files changed +4
-2
lines changed Original file line number Diff line number Diff line change 5
5
using Unity . Netcode . TestHelpers . Runtime ;
6
6
#if UNITY_UNET_PRESENT
7
7
using Unity . Netcode . Transports . UNET ;
8
+ #else
9
+ using Unity . Netcode . Transports . UTP ;
8
10
#endif
9
11
10
12
namespace Unity . Netcode . RuntimeTests
@@ -39,7 +41,7 @@ public void Setup()
39
41
public IEnumerator ClientFailsToConnect ( )
40
42
{
41
43
// Wait for the disconnected event
42
- m_ClientNetworkManager . OnClientDisconnectCallback += M_ClientNetworkManager_OnClientDisconnectCallback ;
44
+ m_ClientNetworkManager . OnClientDisconnectCallback += ClientNetworkManager_OnClientDisconnectCallback ;
43
45
44
46
// Only start the client (so it will timeout)
45
47
m_ClientNetworkManager . StartClient ( ) ;
@@ -58,7 +60,7 @@ public IEnumerator ClientFailsToConnect()
58
60
yield return m_DefaultWaitForTick ;
59
61
}
60
62
61
- private void M_ClientNetworkManager_OnClientDisconnectCallback ( ulong obj )
63
+ private void ClientNetworkManager_OnClientDisconnectCallback ( ulong clientId )
62
64
{
63
65
m_WasDisconnected = true ;
64
66
}
File renamed without changes.
You can’t perform that action at this time.
0 commit comments