Skip to content

fix: minor whitespace fixes according to standards #743

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Apr 15, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ public void NetworkPrefabHandlerClass()

//Test that something was instantiated
Assert.NotNull(spawnedObject);

//Test that this is indeed an instance of our original object
Assert.True(spawnedObject.name.Contains(testPrefabObjectName));

Expand All @@ -66,7 +66,7 @@ public void NetworkPrefabHandlerClass()
spawnedObject = networkPrefabHandler.HandleNetworkPrefabSpawn(baseObject.GlobalObjectIdHash, 0, prefabPosition, prefabRotation);

//Test that something was instantiated
Assert.NotNull(spawnedObject);
Assert.NotNull(spawnedObject);

//Test that this is indeed an instance of our original object
Assert.True(spawnedObject.name.Contains(testPrefabObjectName));
Expand All @@ -85,7 +85,7 @@ public void NetworkPrefabHandlerClass()
Assert.True(gameObjectRegistered);

//Change it up
prefabPosition = new Vector3(6.0f, 4.0f,1.0f);
prefabPosition = new Vector3(6.0f, 4.0f, 1.0f);
prefabRotation = new Quaternion(3f, 2f, 4f, 1f);

spawnedObject = networkPrefabHandler.HandleNetworkPrefabSpawn(baseObject.GlobalObjectIdHash, 0, prefabPosition, prefabRotation);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,12 +16,12 @@ public void SwitchSceneWithoutSceneManagement()
{
NetworkSceneManager.SwitchScene("SomeSceneNane");
}
catch(Exception ex)
catch (Exception ex)
{
if(ex.Message.Contains($"{nameof(NetworkConfig.EnableSceneManagement)} flag is not enabled in the {nameof(NetworkManager)}'s {nameof(NetworkConfig)}. Please set {nameof(NetworkConfig.EnableSceneManagement)} flag to true before calling this method."))
if (ex.Message.Contains($"{nameof(NetworkConfig.EnableSceneManagement)} flag is not enabled in the {nameof(NetworkManager)}'s {nameof(NetworkConfig)}. Please set {nameof(NetworkConfig.EnableSceneManagement)} flag to true before calling this method."))
{
threwException = true;
}
}
}

Assert.IsTrue(threwException);
Expand Down