using UnityEngine;
using System.Collections;

public class WaterMovementation : MonoBehaviour {
	public float velocity;

	private float senx=0;
	// Use this for initialization
	void Start () {
	
	}
	
	// Update is called once per frame
	void Update () {
		if (senx == 1)
			senx = 0;
		transform.position = new Vector3 (transform.position.x+velocity*Mathf.Sin(senx),transform.position.y+velocity*Mathf.Cos(senx),transform.position.z);
		senx += Time.deltaTime;
	}
}
