Skip to content

Commit

Permalink
#479 fixed method names
Browse files Browse the repository at this point in the history
  • Loading branch information
Yvo02 committed Oct 26, 2022
1 parent 9a0cc01 commit ed7109d
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions Assets/SEE/Controls/Actions/MarkAction.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down Expand Up @@ -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();
Expand Down
6 changes: 3 additions & 3 deletions Assets/SEE/Game/GameNodeMarker.cs
Original file line number Diff line number Diff line change
Expand Up @@ -23,15 +23,15 @@ public static class GameNodeMarker
/// <param name="worldSpaceScale">the scale in world space of the new marker</param>
/// <returns>new marker game object or null if none could be created or a marker already exists</returns>
/// <exception cref="ArgumentNullException">If <paramref name="parent"/> is <c>null</c>.</exception>
public static GameObject addSphere(GameObject parent, Vector3 position, Vector3 worldSpaceScale)
public static GameObject AddSphere(GameObject parent, Vector3 position, Vector3 worldSpaceScale)
{
GameObject sphere;

if(parent == null)
{
throw new ArgumentNullException(nameof(parent));
}
else if (deleteExistingSphere(parent))
else if (DeleteExistingSphere(parent))
{
sphere = null;
}
Expand All @@ -53,7 +53,7 @@ public static GameObject addSphere(GameObject parent, Vector3 position, Vector3
/// </summary>
/// <param name="parent">the game object to be checked for existing sphere marker</param>
/// <returns>true if marker exists</returns>
private static bool deleteExistingSphere(GameObject parent)
private static bool DeleteExistingSphere(GameObject parent)
{
foreach (Transform child in parent.transform)
{
Expand Down
2 changes: 1 addition & 1 deletion Assets/SEE/Net/Actions/MarkNetAction.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
}
}
Expand Down

0 comments on commit ed7109d

Please sign in to comment.