If anyone can tell me how to use a tag when calling for an On Trigger Exit that would be great. I know how to use tags for an On Trigger Enter. This is what I mean.
function OnTriggerEnter(hit : Collider){
if(hit.gameObject.tag == "Player"){
}
}
I am not sure on how to chack if the gameObject with the tag "Player" is exiting.
function OnTriggerExit(){
// how do i check if the player is leaving
}
So if anyone knows how to check the tags of a gameObject incased in a OnTriggerExit function, it would be really helpful.