Quantcast
Viewing all articles
Browse latest Browse all 42

Answer by seedoubleyou

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 } }

Viewing all articles
Browse latest Browse all 42

Trending Articles