Hi Everyone!
I need to java script code that can detect four directions (up, down , right , left) swipe . i want when i swipe the player position change Like subway surfers game
Use the SwipeManager script from the unity forum:
https://forum.unity.com/threads/swipe-in-all-directions-touch-and-mouse.165416/page-2#post-2741253
You can also use LeanTouch. The script is LeanSwipeDirection4.cs. Free plugin…