For my Unity game, I want a touch surface (UI Panel).
I started implementing a MonoBehavious that should handle touch-started
, touch-ended
, touch-moved/dragged
and double-tap
with custom methods.
I read some forum posts and the scripting documentation, but I don't understand how have to do this.
Which base-class do I have to use? What methods should be implemented/ overridden?