Since i could not really find a good way to do this with PointerEventData i just changed my code so that i can achieve what i was after.
The way I solved the problem is by changing on PointerDown to call a coroutine of a new method called movement where i just do a yield wait for seconds and do the movement on a loop and then i changed OnPointerUp to stop that coroutine when the joystick is not pressed.
↧