Skip to content

Commit a43e01e

Browse files
committed
Fix codestyle violations
1 parent f1fd7f2 commit a43e01e

File tree

2 files changed

+2
-4
lines changed

2 files changed

+2
-4
lines changed

com.unity.netcode.gameobjects/Tests/Editor/Serialization/BytePackerTests.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -844,7 +844,7 @@ public void TestPackingBasicTypes(
844844
else if (testType == typeof(SceneHandle))
845845
{
846846
#if SCENE_MANAGEMENT_SCENE_HANDLE_NO_INT_CONVERSION
847-
SceneHandle v = SceneHandle.FromRawData((ulong)random.Next());
847+
var v = SceneHandle.FromRawData((ulong)random.Next());
848848
#else
849849
SceneHandle v = random.Next();
850850
#endif

com.unity.netcode.gameobjects/Tests/Runtime/NetworkObject/NetworkObjectOnSpawnTests.cs

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,7 @@
55
using Unity.Netcode.TestHelpers.Runtime;
66
using UnityEngine;
77
using UnityEngine.TestTools;
8-
#if SCENE_MANAGEMENT_SCENE_HANDLE_AVAILABLE
98
using UnityEngine.SceneManagement;
10-
#endif
119

1210
namespace Unity.Netcode.RuntimeTests
1311
{
@@ -381,7 +379,7 @@ public void DynamicallySpawnedNoSceneOriginException()
381379
var sceneOriginHandle = networkObject.GetSceneOriginHandle();
382380

383381
// This validates that GetSceneOriginHandle will return the GameObject's scene handle that should be the currently active scene
384-
var activeSceneHandle = UnityEngine.SceneManagement.SceneManager.GetActiveScene().handle;
382+
var activeSceneHandle = SceneManager.GetActiveScene().handle;
385383
Assert.IsTrue(sceneOriginHandle == activeSceneHandle, $"{nameof(NetworkObject)} should have returned the active scene handle of {activeSceneHandle} but returned {sceneOriginHandle}");
386384
}
387385

0 commit comments

Comments
 (0)