Skip to content

Commit 2287c05

Browse files
style
Removing white spaces. Excluding the LogAnalytics method unless ENABLE_NGO_ANALYTICS_LOGGING is defined.
1 parent 27a91af commit 2287c05

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

com.unity.netcode.gameobjects/Editor/Analytics/NetworkManagerAnalytics.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
#if UNITY_EDITOR
22
using System;
33
using System.Text;
4-
using UnityEngine;
54
using UnityEngine.Analytics;
65

76
namespace Unity.Netcode.Editor
@@ -22,19 +21,20 @@ public override string ToString()
2221
var message = new StringBuilder();
2322
message.AppendLine($"{nameof(IsDistributedAuthority)}: {IsDistributedAuthority}");
2423
message.AppendLine($"{nameof(WasServer)}: {WasServer}");
25-
message.AppendLine($"{nameof(WasClient)}: {WasClient}");
24+
message.AppendLine($"{nameof(WasClient)}: {WasClient}");
2625
message.AppendLine($"{nameof(UsedCMBService)}: {UsedCMBService}");
2726
message.AppendLine($"{nameof(IsUsingMultiplayerSDK)}: {IsUsingMultiplayerSDK}");
2827
message.AppendLine($"{nameof(NetworkTransport)}: {NetworkTransport}");
2928
message.AppendLine($"{nameof(EnableSceneManagement)}: {EnableSceneManagement}");
3029
message.AppendLine($"{nameof(TickRate)}: {TickRate}");
3130
return message.ToString();
3231
}
32+
#if ENABLE_NGO_ANALYTICS_LOGGING
3333
internal void LogAnalytics(int sessionNumber)
3434
{
3535
Debug.Log($"{ToString()}");
3636
}
37-
37+
#endif
3838
public bool Equals(NetworkManagerAnalytics other)
3939
{
4040
return IsDistributedAuthority == other.IsDistributedAuthority && WasServer == other.WasServer && WasClient == other.WasClient

0 commit comments

Comments
 (0)