Hi All, I want to move the player, on the users touch. If user touch on the GUI button, I want to translate the player object by some constant value. The player should be translate his position continuously , till the user ends his touch on the button. simply I want to implement the touches began and touches ended, but on the GUI button. OR Is there any other way to do the same thing? Thanks in advance.
You can use GUI.RepeatButton to make a button that keeps responding as long as it is held down. You can then just use transform.Translate to move the object each frame. You will probably want to scale the movement distance by Time.deltaTime to make the movement independent of processor load.