Added #if to fix build on my computer.
This commit is contained in:
parent
43d85e782c
commit
afeebf294a
1 changed files with 3 additions and 1 deletions
|
@ -1,4 +1,5 @@
|
||||||
using UnityEngine;
|
using UnityEngine;
|
||||||
|
#if UNITY_EDITOR
|
||||||
using UnityEditor;
|
using UnityEditor;
|
||||||
[CustomEditor(typeof(Inventory))]
|
[CustomEditor(typeof(Inventory))]
|
||||||
public class InventoryEditor : Editor
|
public class InventoryEditor : Editor
|
||||||
|
@ -37,3 +38,4 @@ public class InventoryEditor : Editor
|
||||||
EditorGUILayout.EndVertical ();
|
EditorGUILayout.EndVertical ();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
#endif
|
Reference in a new issue