Fix build error due to Editor specific code

This commit is contained in:
2022-04-24 13:45:11 +02:00
parent 84fb81e5c8
commit 1c8d428f08

View File

@@ -27,6 +27,8 @@ public class Pickup : MonoBehaviour
string className = this.GetType().ToString(); string className = this.GetType().ToString();
GUI.color = Color.blue; GUI.color = Color.blue;
#if UNITY_EDITOR
UnityEditor.Handles.Label(transform.position, className); UnityEditor.Handles.Label(transform.position, className);
#endif
} }
} }