Skip to content

Commit 189f0d6

Browse files
committed
refactoring
1 parent 6812061 commit 189f0d6

File tree

5 files changed

+13
-6
lines changed

5 files changed

+13
-6
lines changed

Editor/ExtendedEditor.cs.meta

Lines changed: 11 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Editor/LazyNoteEditor.cs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,6 @@ internal class LazyNoteEditor : ExtendedEditor<LazyNote>
1010
{
1111
private Rect rect = new Rect();
1212
private Texture2D _lineTex;
13-
private bool _IsInit = false;
1413

1514
private SerializedProperty _heightProp;
1615
private SerializedProperty _textProp;

Editor/NoteArrowEditor.cs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,6 @@ static NoteArrowEditor()
2828
SceneView.duringSceneGui += SceneView_duringSceneGui;
2929
}
3030

31-
3231
#region Draw Gizmo
3332
[DrawGizmo(GizmoType.Active | GizmoType.NonSelected)]
3433
static void DrawGizmo(NoteArrow obj, GizmoType type)

Editor/NoteEditor.cs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,6 @@ internal class NoteEditor : ExtendedEditor<Note>
1414

1515
private Rect fullRect = new Rect();
1616
private Texture2D _lineTex;
17-
private bool _IsInit = false;
1817

1918
private GUIStyle _settingsButtonStyle;
2019

Editor/NoteUtility.cs

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,6 @@ internal static class NoteUtility
1111
{
1212
private static string _gizmosPath;
1313

14-
1514
#region CreateLazyNote
1615
[MenuItem("GameObject/" + ASSET_SHORT_NAME + "/Create " + nameof(LazyNote) + " with arrow")]
1716
public static void CreateLazyNoteWithArrow(MenuCommand menuCommand)
@@ -25,7 +24,7 @@ public static void CreateLazyNote(MenuCommand menuCommand)
2524
}
2625
private static GameObject CreateLazyNoteInternal(MenuCommand menuCommand, bool isWithArrow)
2726
{
28-
GameObject go = new GameObject(nameof(LazyNote));
27+
GameObject go = new GameObject(nameof(LazyNote) + (isWithArrow ? " (Arrow)" : ""));
2928
go.tag = EDITOR_NAME_TAG;
3029
go.AddComponent<LazyNote>();
3130
GameObjectUtility.SetParentAndAlign(go, menuCommand.context as GameObject);
@@ -56,7 +55,7 @@ public static void CreateNote(MenuCommand menuCommand)
5655
}
5756
private static GameObject CreateNoteInternal(MenuCommand menuCommand, bool isWithArrow)
5857
{
59-
GameObject go = new GameObject(nameof(Note));
58+
GameObject go = new GameObject(nameof(Note) + (isWithArrow ? " (Arrow)" : ""));
6059
go.tag = EDITOR_NAME_TAG;
6160
go.AddComponent<Note>();
6261
GameObjectUtility.SetParentAndAlign(go, menuCommand.context as GameObject);

0 commit comments

Comments
 (0)