The method OnMouseDown()
is called once when the mouse presses my box 2d collider.
Is there a method that keeps firing while the mouse is still holding the button down inside the collider? Something like WhileMouseDown()
.
I could use Input.GetMouseButton(0)
in the Update()
method. However, this does not check if the mouse is pressing the collider.