I want change the speed of an gameObject by touching the touchscreen.
If a ball fall with this code, how can i do to change the speed of the ball for a period of time (1-2 sec)?
public float apeed = 1;
void Update(){
transform.Translate(0,-speed,0)
}