Hard to tell from just your description, but obviously *something* is exiting your object's collider. You could try allowing the **OnTriggerExit** code to react only if an object with specific tags exit the collider.
For example:
function OnTriggerExit(col : Collider) {
if(col.gameObject.tag == "Enemy"){
//do something
}
}
↧