Skip to content

Commit 638855f

Browse files
committed
Fix code formatting issues (redundant UnityEngine)
1 parent 69dce92 commit 638855f

1 file changed

Lines changed: 8 additions & 10 deletions

File tree

com.unity.netcode.gameobjects/Runtime/SceneManagement/SceneEventData.cs

Lines changed: 8 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,7 @@
33
using System.Linq;
44
using System.Text;
55
using Unity.Collections;
6-
#if UNITY_EDITOR
76
using UnityEngine;
8-
#endif
97
using UnityEngine.SceneManagement;
108

119
namespace Unity.Netcode
@@ -477,7 +475,7 @@ private void LogArray(byte[] data, int start = 0, int stop = 0, StringBuilder bu
477475

478476
if (!usingExternalBuilder)
479477
{
480-
UnityEngine.Debug.Log(builder.ToString());
478+
Debug.Log(builder.ToString());
481479
}
482480
}
483481

@@ -643,7 +641,7 @@ internal void WriteSceneSynchronizationData(FastBufferWriter writer)
643641
}
644642
if (EnableSerializationLogs)
645643
{
646-
UnityEngine.Debug.Log(builder.ToString());
644+
Debug.Log(builder.ToString());
647645
}
648646

649647
// Write the number of despawned in-scene placed NetworkObjects
@@ -1049,12 +1047,12 @@ private void DeserializeDespawnedInScenePlacedNetworkObjects()
10491047
}
10501048
else
10511049
{
1052-
UnityEngine.Debug.LogError($"In-Scene NetworkObject GlobalObjectIdHash ({globalObjectIdHash}) cannot find its relative local scene handle {localSceneHandle}!");
1050+
Debug.LogError($"In-Scene NetworkObject GlobalObjectIdHash ({globalObjectIdHash}) cannot find its relative local scene handle {localSceneHandle}!");
10531051
}
10541052
}
10551053
else
10561054
{
1057-
UnityEngine.Debug.LogError($"In-Scene NetworkObject GlobalObjectIdHash ({globalObjectIdHash}) cannot find its relative NetworkSceneHandle {networkSceneHandle}!");
1055+
Debug.LogError($"In-Scene NetworkObject GlobalObjectIdHash ({globalObjectIdHash}) cannot find its relative NetworkSceneHandle {networkSceneHandle}!");
10581056
}
10591057
}
10601058
else // Use the cached NetworkObjects if they exist
@@ -1083,7 +1081,7 @@ private void DeserializeDespawnedInScenePlacedNetworkObjects()
10831081
}
10841082
else
10851083
{
1086-
UnityEngine.Debug.LogError($"In-Scene NetworkObject GlobalObjectIdHash ({globalObjectIdHash}) could not be found!");
1084+
Debug.LogError($"In-Scene NetworkObject GlobalObjectIdHash ({globalObjectIdHash}) could not be found!");
10871085
}
10881086
}
10891087
}
@@ -1142,7 +1140,7 @@ internal void SynchronizeSceneNetworkObjects(NetworkManager networkManager)
11421140
}
11431141
if (EnableSerializationLogs)
11441142
{
1145-
UnityEngine.Debug.Log(builder.ToString());
1143+
Debug.Log(builder.ToString());
11461144
}
11471145

11481146
// Notify that all in-scene placed NetworkObjects have been spawned
@@ -1160,8 +1158,8 @@ internal void SynchronizeSceneNetworkObjects(NetworkManager networkManager)
11601158
}
11611159
catch (Exception ex)
11621160
{
1163-
UnityEngine.Debug.LogException(ex);
1164-
UnityEngine.Debug.Log(builder.ToString());
1161+
Debug.LogException(ex);
1162+
Debug.Log(builder.ToString());
11651163
}
11661164
finally
11671165
{

0 commit comments

Comments
 (0)