Fix build error due to Editor specific code
This commit is contained in:
@@ -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
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user