﻿using System.Collections;
using System.Collections.Generic;
using UnityEngine;

public class Shake : MonoBehaviour {

	// Use this for initialization
	void Start () {
		
	}
	
	// Update is called once per frame
	void Update () {
      
        float speed = 1.0f;
        float amplitude = 5.0f;

        // Shake Boat
        transform.localEulerAngles = new Vector3(amplitude * Mathf.Cos(speed * Time.time) - 0f, transform.localEulerAngles.y, 0f);
    }
}
