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;
|
||||
#if UNITY_EDITOR
|
||||
using UnityEditor;
|
||||
[CustomEditor(typeof(Inventory))]
|
||||
public class InventoryEditor : Editor
|
||||
|
@ -37,3 +38,4 @@ public class InventoryEditor : Editor
|
|||
EditorGUILayout.EndVertical ();
|
||||
}
|
||||
}
|
||||
#endif
|
Reference in a new issue