using UnityEngine;
using System.Collections;

public class ShoreMover : MonoBehaviour {
	
	public static float shoreTranslation = -0.1f;
	
	// Use this for initialization
	void Start () {
	
	}
	
	// Update is called once per frame
	void Update () {
		gameObject.transform.position += (new Vector3(0.0f, shoreTranslation, 0.0f));
		if (gameObject.transform.position.y < -9.70 ) {
			gameObject.transform.position = new Vector3(gameObject.transform.position.x,
			                                            20.22158f,
			                                            gameObject.transform.position.z);
		}
			
	}
}
