Since you set your phase to TouchPhase.Began it will of course will do the job just for a frame because, you know, that phase only happens once for all touches on the screen unless you release your finger off of the screen and touch it again.So do this and it will work;
if(touch.phase != TouchPhase.Ended && guiTexture.HitTest(touch.position))
{
//Do your stuff here
}
↧