Skip to content

Commit 75fb164

Browse files
committed
fix build problem
1 parent ebcf77f commit 75fb164

File tree

6 files changed

+18
-8
lines changed

6 files changed

+18
-8
lines changed

Editor/LazyNoteEditor.cs

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
1-
using UnityEditor;
1+
#if UNITY_EDITOR
2+
using UnityEditor;
23
using UnityEngine;
34

45
namespace DCFApixels.Notes.Editors
@@ -103,4 +104,5 @@ private static Texture2D CreateTexture(int width, int height, Color32 color32)
103104
return result;
104105
}
105106
}
106-
}
107+
}
108+
#endif

Editor/NoteEditor.cs

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
1-
using UnityEditor;
1+
#if UNITY_EDITOR
2+
using UnityEditor;
23
using UnityEngine;
34

45
namespace DCFApixels.Notes.Editors
@@ -207,4 +208,5 @@ private static Texture2D CreateTexture(int width, int height, Color32 color32)
207208
return result;
208209
}
209210
}
210-
}
211+
}
212+
#endif

Editor/NoteUtility.cs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
1-
using System.Reflection;
1+
#if UNITY_EDITOR
2+
using System.Reflection;
23
using UnityEditor;
34
using UnityEngine;
45

@@ -76,3 +77,4 @@ internal static string GetSceneNote(string fullNote, bool isNeedSpacing)
7677
}
7778
}
7879
}
80+
#endif

Editor/NotesSettings.cs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
#if UNITY_EDITOR
12
using System.Collections.Generic;
23
using System.Linq;
34
using UnityEditor;
@@ -116,4 +117,5 @@ public static class NotesSettingsExtensions
116117
public static bool IsDummy(this AuthorInfo self) => self == DUMMY_AUTHOR;
117118
public static bool IsDummy(this NoteTypeInfo self) => self == DUMMY_NOTE_TYPE;
118119
}
119-
}
120+
}
121+
#endif

Editor/NotesSettingsWindow.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,9 @@
1-
using System.Collections.Generic;
1+
#if UNITY_EDITOR
22
using UnityEditor;
33
using UnityEngine;
44

55
namespace DCFApixels.Notes.Editors
66
{
7-
using static NotesConsts;
87
internal class NotesSettingsWindow : EditorWindow
98
{
109
//[MenuItem("Window/" + AUTHOR + "/" + ASSET_SHORT_NAME + "/Settings")]
@@ -55,3 +54,4 @@ private void OnGUI()
5554
}
5655
}
5756
}
57+
#endif

Runtime/Note.cs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
#pragma warning disable CS0414
2+
#if UNITY_EDITOR
23
using DCFApixels.Notes.Editors;
4+
#endif
35
using UnityEngine;
46

57
namespace DCFApixels.Notes

0 commit comments

Comments
 (0)