Hello I wanted to put in a script input with “if” that creeps up when your finger on the screen to start a 'animation, I tried this command but in vain:
if (touch.phase == TouchPhase.Moved) {
anim.Set Bool(“Jump”, true");
}
How do I?
Hello I wanted to put in a script input with “if” that creeps up when your finger on the screen to start a 'animation, I tried this command but in vain:
if (touch.phase == TouchPhase.Moved) {
anim.Set Bool(“Jump”, true");
}
How do I?
Since I don’t do much JS, I’m not sure of your issue. Here is the test for the first touch:
Touch[] touches = Input.touches;
if (touches != null && touches[0].phase == TouchPhase.Moved)
{
}
Ok thanks so much!!!