OnTriggerEnter and OnTriggerExit can only fire once?

Hey all…

I’m having a small issue at the moment. I’m trying to add ‘swimming’ to a first person game that I’m making for my final year project at Uni, however I’ve hit an issue with the trigger collider that I’m using for my water. A snippet of my code:

function OnTriggerEnter(collisionInfo : Collider){
    if(collisionInfo.gameObject.tag == "water"){
        FPSWalker.inWater=true;
        print("Entered");
    }
}

function OnTriggerExit(collisionInfo : Collider){
    if(collisionInfo.gameObject.tag == "water"){
        FPSWalker.inWater=false;
        print("Exited");
    }
}

The console line-bar-thingy at the bottom of the screen correctly says when I’ve entered the water and when I’ve exited once… but after that it stops working.

I’m probably making a stupid mistake here, but I’m really stumped. (As you can probably see, I’m quite new to programming ^_^).

Any help anyone can give would be GREATLY appreciated.

Cheers

OnTriggerStay

Ahhh… thanks!