Skip to content

Commit

Permalink
Added Zematus#308
Browse files Browse the repository at this point in the history
Toolbar disappears while using brush
  • Loading branch information
Denormos committed Aug 10, 2023
1 parent c1bac6e commit f534c7b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions Assets/Scripts/2D/MapScript.cs
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ public class MapScript : MonoBehaviour
public Material DrainageMaterial;

public UnityEvent ActivatedBrush;
public UnityEvent DeactivatedBrush;

private bool _isDraggingMap = false;
private Vector2 _beginDragPosition;
Expand Down Expand Up @@ -311,6 +312,7 @@ public void PointerUp(BaseEventData data)
if (pointerData.button == PointerEventData.InputButton.Left)
{
Manager.ActivateEditorBrush(false);
DeactivatedBrush.Invoke();
}
}

Expand Down
Binary file modified Assets/WorldView.unity
Binary file not shown.

0 comments on commit f534c7b

Please sign in to comment.