Check Input for android? Raycast or hittest

hello i am making a Platform Run game for android and you can move by tapping
on guiTexture buttons on the screen but sometimes when you press the button it wont respond
then you have to tap again to make it respond. i am currently using Hittest to check the input. is raycasting more reliable?

please help me,

Vince

I suggest you just get the position of the tap and then check if that position is contained in any of the rects of your buttons.

https://docs.unity3d.com/Documentation/ScriptReference/Rect.Contains.html