浏览代码

[Bot] Automated dotnet-format update

/UI
gheraibia 3 年前
当前提交
80ca65d4
共有 3 个文件被更改,包括 10 次插入9 次删除
  1. 6
      UOP1_Project/Assets/Scripts/Editor/Pathway/PathwayEditor.cs
  2. 11
      UOP1_Project/Assets/Scripts/Editor/Pathway/PathwayGizmos.cs
  3. 2
      UOP1_Project/Assets/Scripts/Editor/Pathway/PathwayHandles.cs

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


private ReorderableList _reorderableList;
private Pathway _pathway;
private PathwayHandles _pathwayHandles;
public void OnSceneGUI()
{

{
serializedObject.UpdateIfRequiredOrScript();
if (_reorderableList.index >= _reorderableList.serializedProperty.arraySize )
if (_reorderableList.index >= _reorderableList.serializedProperty.arraySize)
_reorderableList.index = _reorderableList.serializedProperty.arraySize-1;
_reorderableList.index = _reorderableList.serializedProperty.arraySize - 1;
}
}

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


using System.Collections.Generic;
public class PathwayGizmos
public class PathwayGizmos
DrawHandlesPath(pathway);
}

Vector3 textHeight = Vector3.up;
Vector3 textHeight = Vector3.up;
style.normal.textColor = pathway.TextColor;
style.fontSize = pathway.TextSize;

private static void DrawHandlesPath(Pathway pathway)
{
if (pathway.Waypoints.Count != 0) {
if (pathway.Waypoints.Count != 0)
{
DrawElements(pathway, pathway.Waypoints, 0);
}

{
Handles.DrawDottedLine(pathway.Waypoints[i - 1], pathway.Waypoints[i], 2);
}
}
}

2
UOP1_Project/Assets/Scripts/Editor/Pathway/PathwayHandles.cs


using UnityEditor;
public class PathwayHandles
public class PathwayHandles
{
private Pathway _pathway;

正在加载...
取消
保存