Simple under water script

Hi! I was looking for a simple under water blur/ disorientation that I can apply to a 2D plane. Anything beneath has a water effect. I am using the easy water from the asset store. Sorry, I’m not too brilliant with scripting, I’m just a 3D artist/modeler.

I have not tested this, but my way would be to have a raycast always checking up. If it finds the water prefab (assuming you set it’s tag to “water”), then it will apply the effect.

function Update(){
    var up = transform.TransformDirection (Vector3.up);
    if (Physics.Raycast (transform.position, up, 1000)) {
        if(hit.collider.gameObject.tag == "water"){
            Debug.Log("Applying water effect!");
            //Effect Code
        }
    }
}