How do I get touch working in Unity3D?

Viewed 1804

I'm making an Android app with Unity3D and it works with click detection already, but not with touch. I need touch though for multitouch detection.

What I want: I have my player and 2 images of arrows. One arrow points right and one left. When I touch the left arrow the player should start moving left, when I touch the right arrow the player should start moving right.

But how do I detect which arrow is touched (and held)? All the code I found on Google is too old and not working anymore.

I'm working with C# scripts and it's a 2D game.

2 Answers
Related