Skip to content

Commit b8eca18

Browse files
committed
Pass on MouseDown to make destroying blocks more fun
1 parent cbde50f commit b8eca18

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

Assets/Scripts/ChangeCursorExample.cs

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,11 @@ public class ChangeCursorExample : MonoBehaviour
2121
private void OnMouseEnter()
2222
{
2323
WebToolPlugins.SetCursor(CursorEnteredName);
24+
if(Input.GetMouseButton(0))
25+
{
26+
// Entered with the mouse already down
27+
OnMouseDown();
28+
}
2429
}
2530

2631
private void OnMouseExit()

0 commit comments

Comments
 (0)