Skip to content

Commit 71acd54

Browse files
committed
fix: remove build conditional from runtime classes
1 parent 4480409 commit 71acd54

File tree

3 files changed

+8
-10
lines changed

3 files changed

+8
-10
lines changed

Editor/Utility/FMSEditorUtility.cs

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

@@ -107,4 +108,5 @@ public static void Vector3dField(string Label, ref Vector3d vector)
107108

108109
#endregion
109110
}
110-
}
111+
}
112+
#endif

Runtime/Attributes/FixedNumberAngleAttribute.cs

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

43
namespace FixedMathSharp
54
{
@@ -31,5 +30,4 @@ public FixedNumberAngleAttribute(double timescale = 1d, double max = -1d)
3130
Max = max;
3231
}
3332
}
34-
}
35-
#endif
33+
}

Runtime/Attributes/VectorRotationAttribute.cs

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

43
namespace FixedMathSharp
54
{
@@ -16,5 +15,4 @@ public VectorRotationAttribute(double timescale = 1d)
1615
Timescale = timescale;
1716
}
1817
}
19-
}
20-
#endif
18+
}

0 commit comments

Comments
 (0)