//invisible widget
public class TouchAllower{
public static bool touchAllowed = false;
void LateUpdate(){
touchAllowed = false; //clears the setting for this frame
}
void OnClick() {touchAllowed = true; }
}
//game code
void Update()
{
if (TouchAllower.touchAllowed)
{
//do your ingame stuff with the input class.
}
}
}