using UnityEngine;
using System.Collections;

public class wave : MonoBehaviour {

    private float seed = 0;
    public float factor = 0.0005f;

    // Use this for initialization
    void Start () {
        seed = transform.position.magnitude;
    }
	
	// Update is called once per frame
	void Update () {
        transform.Translate(Vector3.up * Mathf.Cos(seed + Time.time) * factor);
	}
}
