Stay in Trigger Range Script...

I'm fooling around making a horse-shoe toss game and I want to ensure the horse shoe stays around the post not just breifly touches it.

Usually for a trigger script you do: OnTriggerEnter...... but how do you check to see if the gameobject that triggered the trigger stays in the boundary for 3 seconds?

Is that even possible?

If so, how can you do it?

There's a OnTriggerExit() method. Just store the time it entered and if it exits check if the 3 seconds are up.

There is also OnTriggerStay() -- do your time counting there.