public override void OnInspectorGUI() { GroundBrush grBrush = (GroundBrush)target; EditorGUILayout.LabelField("ground brush name", grBrush.brushName); EditorGUILayout.ObjectField("default ground", grBrush.defGround, typeof(Sprite)); EditorGUILayout.ObjectField("outter ground", grBrush.outGround, typeof(Sprite)); EditorGUILayout.ObjectField("inner angle ground", grBrush.inAngleGround, typeof(Sprite)); EditorGUILayout.ObjectField("outter angle ground", grBrush.outAngleGround, typeof(Sprite)); EditorGUILayout.ObjectField("edge ground", grBrush.edgeGround, typeof(Sprite)); EditorGUILayout.ObjectField("margin ground", grBrush.marginGround, typeof(Sprite)); EditorGUILayout.ObjectField("inner ground", grBrush.inGround, typeof(Sprite)); EditorGUILayout.ObjectField("45 angle ground", grBrush.angleGround, typeof(Sprite)); grBrush.SetDirty(); }
public void borderize(GameMap map) { GroundBrush.doBorders(map, this); }