la unidad se mueve a la izquierda y a la derecha
public float speed = 0.2f
transform.position = new Vector3(transform.position.x+speed,
transform.position.y, transform.position.z);
Artyom Gabtraupov