Skip to content

Commit aade080

Browse files
author
luiza.torello
committed
fix: add and edit if directive in editor only scripts
1 parent 2be9769 commit aade080

File tree

2 files changed

+6
-4
lines changed

2 files changed

+6
-4
lines changed

Assets/Scripts/OverlordData/RulesGenerator/SearchSpaceConfig.cs

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
#if UNITY_EDITOR
12
using MyBox;
23
using UnityEditor;
34
using UnityEngine;
@@ -27,7 +28,7 @@ public override void OnInspectorGUI()
2728
{
2829
serializedObject.Update();
2930

30-
// Cabeçalho
31+
// Cabe�alho
3132
EditorGUILayout.BeginHorizontal();
3233
GUILayout.Label("Status", GUILayout.Width(75));
3334
GUILayout.Label("Min", GUILayout.Width(40));
@@ -54,4 +55,5 @@ public override void OnInspectorGUI()
5455

5556
serializedObject.ApplyModifiedProperties();
5657
}
57-
}
58+
}
59+
#endif

Assets/Scripts/OverlordData/RulesGenerator/UI/RangeSliderUI.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ public MinMaxSliderRange(float minLimit, float maxLimit, float minValue, float m
2727
[CustomPropertyDrawer(typeof(MinMaxSliderRange))]
2828
public class RangeSliderUI : PropertyDrawer
2929
{
30-
const float NumberWidth = 40f; // menor para dar mais espaço ao slider
30+
const float NumberWidth = 40f; // menor para dar mais espa�o ao slider
3131
const float NameWidth = 75f;
3232
const float InnerSpacing = 4f;
3333

@@ -91,5 +91,5 @@ public override float GetPropertyHeight(SerializedProperty property, GUIContent
9191
return EditorGUIUtility.singleLineHeight + 2f;
9292
}
9393
}
94-
}
9594
#endif
95+
}

0 commit comments

Comments
 (0)