Answer by Sebas
straight from the documentation:// Destroy everything that enters the trigger function OnTriggerEnter (other : Collider) { Destroy(other.gameObject); }As you can see there, the OnTriggerEnter function...
View ArticleAnswer by Detinator10
I know this is already answered but you could use: function OnTriggerEnter (other : Collider) { if(other.gameObject.layer == playerlayer){ //stuff here } } BTW the variable player layer is a LayerMask.
View Article
More Pages to Explore .....