Esempio n. 1
0
    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());
    }
Esempio n. 2
0
 public void SetCoord(HexCoord coord, bool isPassable = true)
 {
     _hexCoord   = coord;
     name        = coord.ToString();
     _isPassable = isPassable;
     AutoSetState();
 }