So I want to control the game character's movement with a simple two-directional pad - just two onscreen arrow elements/buttons next to each other. Tried the demo UI button examples, but the available events don't satisfy my needs unfortunately. The user should be able to slide between the two sprites without lifting her finger and the OnDown event doesn't get fired in this case. Also, it's a one time event and I need to execute some code for as long as the screen is being touched.
It would be enough if I can just get the standard unity
Input touches (
http://docs.unity3d.com/Documentation/ScriptReference/Input.GetTouch.html) that are applied over the sprite colliders (or just the sprites), so if you could give me some directions how to do that, I should be ok. Of course, any alternative ideas are welcome. Thanks.
PS: I saw the regular way to create such control element in Unity is by using GUITexture, but was wondering If I can utilise some of the TK2D features instead..