Can someone explain me why, when i touch the touchscreen, doesn’t change the speed?
This is the c# code!
public float speed = 1;
void Update () {
transform.Translate(0,-speed,0);
if(Input.touchCount == 1 && Input.GetTouch(1).phase == TouchPhase.Began){
speed = 2;
}