Skip to content

Commit 6be6f64

Browse files
[Bot] Automated dotnet-format update
1 parent e289039 commit 6be6f64

File tree

4 files changed

+20
-18
lines changed

4 files changed

+20
-18
lines changed

UOP1_Project/Assets/Scripts/Editor/Pathway/PathWayNavMeshUI.cs

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ public class PathWayNavMeshUI
66
{
77
private Pathway _pathway;
88
private PathwayNavMesh _pathwayNavMesh;
9-
9+
1010
public PathWayNavMeshUI(Pathway pathway)
1111
{
1212
_pathway = pathway;
@@ -35,7 +35,8 @@ public void OnInspectorGUI()
3535
}
3636
}
3737

38-
public void UpdatePath() {
38+
public void UpdatePath()
39+
{
3940

4041
if (!_pathway.DisplayProbes)
4142
{

UOP1_Project/Assets/Scripts/Editor/Pathway/PathwayEditor.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,14 +10,14 @@ public class PathwayEditor : Editor
1010
private Pathway _pathway;
1111
private PathwayHandles _pathwayHandles;
1212
private PathWayNavMeshUI _pathWayNavMeshUI;
13-
private enum LIST_MODIFICATION { ADD, SUPP, DRAG, OTHER};
13+
private enum LIST_MODIFICATION { ADD, SUPP, DRAG, OTHER };
1414
private LIST_MODIFICATION _currentListModification;
1515
private int _indexCurrentModification;
1616

1717
public void OnSceneGUI()
1818
{
1919
int index = _pathwayHandles.DisplayHandles();
20-
_pathWayNavMeshUI.RealTime(index);
20+
_pathWayNavMeshUI.RealTime(index);
2121
}
2222

2323
public override void OnInspectorGUI()
@@ -141,7 +141,7 @@ private void DoUndo()
141141
{
142142
serializedObject.UpdateIfRequiredOrScript();
143143

144-
if (_reorderableList.index >= _reorderableList.serializedProperty.arraySize )
144+
if (_reorderableList.index >= _reorderableList.serializedProperty.arraySize)
145145
{
146146
_reorderableList.index = _reorderableList.serializedProperty.arraySize - 1;
147147
}

UOP1_Project/Assets/Scripts/Editor/Pathway/PathwayGizmos.cs

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,11 @@
22
using UnityEditor;
33

44

5-
public class PathwayGizmos
5+
public class PathwayGizmos
66
{
77
[DrawGizmo(GizmoType.Selected)]
88
private static void DrawGizmosSelected(Pathway pathway, GizmoType gizmoType)
9-
{
9+
{
1010
if (!pathway.ToggledNavMeshDisplay)
1111
{
1212
DrawHandlesPath(pathway);
@@ -20,7 +20,7 @@ private static void DrawGizmosSelected(Pathway pathway, GizmoType gizmoType)
2020
}
2121

2222

23-
private static void DrawLabel(Pathway pathway,Vector3 path, int index)
23+
private static void DrawLabel(Pathway pathway, Vector3 path, int index)
2424
{
2525
GUIStyle style = new GUIStyle();
2626
Vector3 textHeight = Vector3.up;
@@ -58,12 +58,13 @@ private static void DrawHandlesPath(Pathway pathway)
5858
private static void DrawNavMeshPath(Pathway pathway)
5959
{
6060
Handles.color = pathway.LineColor;
61-
62-
for (int i = 0 ; i < pathway.Path.Count - 1; i++)
61+
62+
for (int i = 0; i < pathway.Path.Count - 1; i++)
6363
{
6464
Handles.DrawLine(pathway.Path[i], pathway.Path[i + 1]);
6565

66-
if (i < pathway.Waypoints.Count) {
66+
if (i < pathway.Waypoints.Count)
67+
{
6768
DrawLabel(pathway, pathway.Waypoints[i].waypoint, i);
6869
}
6970
}

UOP1_Project/Assets/Scripts/Editor/Pathway/PathwayNavMesh.cs

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,10 @@
33
using System.Collections.Generic;
44
using System.Linq;
55

6-
public class PathwayNavMesh
6+
public class PathwayNavMesh
77
{
88
private Pathway _pathway;
9-
9+
1010
public PathwayNavMesh(Pathway pathway)
1111
{
1212
_pathway = pathway;
@@ -67,15 +67,15 @@ private bool CopyCorners(int startIndex, int endIndex)
6767
{
6868
_pathway.Waypoints[startIndex].corners = result;
6969
}
70-
70+
7171
return result != null;
7272
}
7373

7474
public bool UpdateCornersAt(int index)
7575
{
7676
bool canUpdate = true;
77-
78-
if (_pathway.Waypoints.Count > 1 && index <_pathway.Waypoints.Count)
77+
78+
if (_pathway.Waypoints.Count > 1 && index < _pathway.Waypoints.Count)
7979
{
8080
if (index == 0)
8181
{
@@ -84,11 +84,11 @@ public bool UpdateCornersAt(int index)
8484
}
8585
else if (index == _pathway.Waypoints.Count - 1)
8686
{
87-
87+
8888
canUpdate = CopyCorners(index - 1, index);
8989
canUpdate &= CopyCorners(index, 0);
9090
}
91-
else
91+
else
9292
{
9393
canUpdate = CopyCorners(index - 1, index);
9494
canUpdate &= CopyCorners(index, index + 1);

0 commit comments

Comments
 (0)