public override void OnGUI(Rect position, SerializedProperty property, GUIContent label) { HexCoord coordinates = new HexCoord(property.FindPropertyRelative("x").intValue, property.FindPropertyRelative("z").intValue); position = EditorGUI.PrefixLabel(position, label); GUI.Label(position, coordinates.ToString()); }
public void SetCoord(HexCoord coord, bool isPassable = true) { _hexCoord = coord; name = coord.ToString(); _isPassable = isPassable; AutoSetState(); }