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

public class WaterController : MonoBehaviour
{
    public float tideSpeed = 1f;
    public float maxLevel = 20f;

    public float waterLevel;

    void Start()
    {
        
    }

    void Update()
    {
        waterLevel = Mathf.PerlinNoise(Time.time * tideSpeed, 0) * maxLevel;
        transform.position = new Vector3(0, waterLevel, 0);
    }
}
