hello guys , i want to make the cube translate on y and after 10 seconds translate on -y and still repeating it .
hoe i make it repeat every 10 seconds up and down up and down …sorry for my english
Yspeed=2;
function Update () {
transform.Translate(0,0.03*Time.deltaTime*Yspeed,0);
transform.Translate(0,-0.03*Time.deltaTime*Yspeed,0);
}