using UnityEngine;
using System.Collections;

public class CorrimientoCiclico : MonoBehaviour {

    public float fase;
    public float amplitud;
    public float velocidad;

	void Update ()
    {
        fase += velocidad;
        transform.position = amplitud * new Vector3(Mathf.Sin(fase), 0, 0);
	}
}
