Skip to content

Commit 9bb24d7

Browse files
chore: Compile out file when tool isn’t present
1 parent 4360413 commit 9bb24d7

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

com.unity.multiplayer.mlapi/Runtime/Metrics/NetworkMetrics.cs

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
#if MULTIPLAYER_TOOLS
2+
13
using System.Collections.Generic;
24
using Unity.Multiplayer.NetStats.Dispatch;
35
using Unity.Multiplayer.NetStats.Metrics;
@@ -6,7 +8,6 @@
68

79
namespace MLAPI.Metrics
810
{
9-
#if MULTIPLAYER_TOOLS
1011
public class NetworkMetrics : INetworkMetrics
1112
{
1213
private readonly NetworkManager m_NetworkManager;
@@ -148,5 +149,6 @@ static MLAPIObserver()
148149
Observer = new NetStatObserver();
149150
}
150151
}
151-
#endif
152152
}
153+
154+
#endif

0 commit comments

Comments
 (0)