How do I put out flames when a water source touches it?

Well, what I really want it to do is when I have some water level (call it pool) and I want a flame to go out when the water reaches a certain height. How can I do that?

Maybe this is what you looking for:

Attach this to your Water-Object

function Update () {
transform.position.y+=0.05;
}

And this to your Flame-Object

function OnCollisionEnter (collision:Collision) {
if(collision.gameObject.name=="Water"){
transform.acktive=false;
}
}

This should work fine =) . If it doesn`t, describe your scene with more details.