diff --git a/Assets/SEE/Controls/Actions/MarkAction.cs b/Assets/SEE/Controls/Actions/MarkAction.cs index 7381cd8175..34b03de952 100644 --- a/Assets/SEE/Controls/Actions/MarkAction.cs +++ b/Assets/SEE/Controls/Actions/MarkAction.cs @@ -31,7 +31,7 @@ public override bool Update() // The position at which the parent was hit will be the center point of the new node marker Vector3 position = parent.transform.position; Vector3 scale = parent.transform.lossyScale; - addedSphere = GameNodeMarker.addSphere(parent, position: position, worldSpaceScale: scale); + addedSphere = GameNodeMarker.AddSphere(parent, position: position, worldSpaceScale: scale); if (addedSphere != null) { memento = new Memento(parent, position: position, scale: scale); @@ -117,7 +117,7 @@ public override void Undo() public override void Redo() { base.Redo(); - addedSphere = GameNodeMarker.addSphere(memento.Parent, position: memento.Position, worldSpaceScale: memento.Scale); + addedSphere = GameNodeMarker.AddSphere(memento.Parent, position: memento.Position, worldSpaceScale: memento.Scale); if (addedSphere != null) { new MarkNetAction(parentID: memento.Parent.name,memento.Position, memento.Scale).Execute(); diff --git a/Assets/SEE/Game/GameNodeMarker.cs b/Assets/SEE/Game/GameNodeMarker.cs index dca931a9be..7a68d62996 100644 --- a/Assets/SEE/Game/GameNodeMarker.cs +++ b/Assets/SEE/Game/GameNodeMarker.cs @@ -23,7 +23,7 @@ public static class GameNodeMarker /// the scale in world space of the new marker /// new marker game object or null if none could be created or a marker already exists /// If is null. - public static GameObject addSphere(GameObject parent, Vector3 position, Vector3 worldSpaceScale) + public static GameObject AddSphere(GameObject parent, Vector3 position, Vector3 worldSpaceScale) { GameObject sphere; @@ -31,7 +31,7 @@ public static GameObject addSphere(GameObject parent, Vector3 position, Vector3 { throw new ArgumentNullException(nameof(parent)); } - else if (deleteExistingSphere(parent)) + else if (DeleteExistingSphere(parent)) { sphere = null; } @@ -53,7 +53,7 @@ public static GameObject addSphere(GameObject parent, Vector3 position, Vector3 /// /// the game object to be checked for existing sphere marker /// true if marker exists - private static bool deleteExistingSphere(GameObject parent) + private static bool DeleteExistingSphere(GameObject parent) { foreach (Transform child in parent.transform) { diff --git a/Assets/SEE/Net/Actions/MarkNetAction.cs b/Assets/SEE/Net/Actions/MarkNetAction.cs index 47041d4488..a137442872 100644 --- a/Assets/SEE/Net/Actions/MarkNetAction.cs +++ b/Assets/SEE/Net/Actions/MarkNetAction.cs @@ -65,7 +65,7 @@ protected override void ExecuteOnClient() { throw new System.Exception($"There is no node with the ID {ParentID}."); } - GameNodeMarker.addSphere(parent, Position, Scale); + GameNodeMarker.AddSphere(parent, Position, Scale); } } }