Skip to content

Commit ade7af4

Browse files
committed
Corrected Netcode capital C case
1 parent 2c3d3e4 commit ade7af4

2 files changed

Lines changed: 7 additions & 7 deletions

File tree

‎com.unity.netcode.gameobjects/Runtime/Core/NetworkManager.cs‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
// blanket import of it competes with Unity.Netcode on every name the two happen to share. Importing
99
// only the types used here keeps that surface to exactly those names.
1010
using NetCodeConfig = Unity.NetCode.NetCodeConfig;
11-
using NetcodeWorld = Unity.NetCode.NetcodeWorld;
11+
using NetcodeWorld = Unity.Netcode.NetcodeWorld;
1212
#endif
1313
using Unity.Netcode.Components;
1414
using Unity.Netcode.GameObjects.Timing;

‎com.unity.netcode.gameobjects/Runtime/Transports/Unified/UnifiedNetcodeTransport.cs‎

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -273,7 +273,7 @@ public override NetworkEvent PollEvent(out ulong clientId, out ArraySegment<byte
273273
return NetworkEvent.Nothing;
274274
}
275275

276-
private void OnClientConnectedToServer(Connection connection, NetCodeConnectionEvent connectionEvent)
276+
private void OnClientConnectedToServer(Connection connection, NetcodeConnectionEvent connectionEvent)
277277
{
278278
m_Connections[connectionEvent.Id.Value] = new ConnectionInfo
279279
{
@@ -287,7 +287,7 @@ private void OnClientConnectedToServer(Connection connection, NetCodeConnectionE
287287
updateSystem.EntityManager.AddBuffer<TransportRpcData>(connection.ConnectionEntity);
288288
}
289289

290-
private void OnServerNewClientConnection(Connection connection, NetCodeConnectionEvent connectionEvent)
290+
private void OnServerNewClientConnection(Connection connection, NetcodeConnectionEvent connectionEvent)
291291
{
292292
m_Connections[connectionEvent.Id.Value] = new ConnectionInfo
293293
{
@@ -365,7 +365,7 @@ private DisconnectEvents GetDisconnectEventFromNetworkStreamDisconnectReason(Net
365365
return DisconnectEvents.Disconnected;
366366
}
367367

368-
private void OnClientDisconnectFromServer(Connection connection, NetCodeConnectionEvent connectionEvent)
368+
private void OnClientDisconnectFromServer(Connection connection, NetcodeConnectionEvent connectionEvent)
369369
{
370370
SetDisconnectEvent(
371371
GetDisconnectEventFromNetworkStreamDisconnectReason(connectionEvent.DisconnectReason),
@@ -374,12 +374,12 @@ private void OnClientDisconnectFromServer(Connection connection, NetCodeConnecti
374374
InvokeOnTransportEvent(NetworkEvent.Disconnect, (ulong)connectionEvent.Id.Value, default, m_RealTimeProvider.RealTimeSinceStartup);
375375
}
376376

377-
private void OnServerClientDisconnected(Connection connection, NetCodeConnectionEvent connectionEvent)
377+
private void OnServerClientDisconnected(Connection connection, NetcodeConnectionEvent connectionEvent)
378378
{
379379
InvokeOnTransportEvent(NetworkEvent.Disconnect, (ulong)connectionEvent.Id.Value, default, m_RealTimeProvider.RealTimeSinceStartup);
380380
}
381381

382-
private void OnClientConnectionEvent(Connection connection, NetCodeConnectionEvent connectionEvent)
382+
private void OnClientConnectionEvent(Connection connection, NetcodeConnectionEvent connectionEvent)
383383
{
384384
switch (connectionEvent.State)
385385
{
@@ -392,7 +392,7 @@ private void OnClientConnectionEvent(Connection connection, NetCodeConnectionEve
392392
}
393393
}
394394

395-
private void OnServerConnectionEvent(Connection connection, NetCodeConnectionEvent connectionEvent)
395+
private void OnServerConnectionEvent(Connection connection, NetcodeConnectionEvent connectionEvent)
396396
{
397397
switch (connectionEvent.State)
398398
{

0 commit comments

Comments
 (0)