I want to print held when I touch only the gameObject
public GameObject Gameobject;
void Update () {
if (Input.GetButton("Fire1"))
{
print("held");
}
}
So this code prints held when I even touch outside the gameobject.I added the script to the gameobject.The answer must work on android too.