Hide water!

I trying to do a simple script, to when the camera is near to water, the water show, else water stay disactived.
But I’m new in unity, and Im having some difficults to do it.
I’m attaching the script on the water, but the unity return a error in “this.active”.
Whats wrong?

my code:

using UnityEngine;
using System.Collections;

public class hideMesh : MonoBehaviour {
public int chave;
public float distance;

// Use this for initialization
void Start () {
	//this.active = false;

// Update is called once per frame
void Update () {
	distance = Vector3.Distance (this.transform.position, Camera.current.transform.position);

	if(distance > 10){
		chave = 0;
		chave = 1;

		this.active  = false;
	print("Chave: " + chave.ToString());		


Maybe you should use this? :wink: