Quantcast
Channel: Answers by "Detinator10"
Viewing all articles
Browse latest Browse all 24

Answer by Detinator10

$
0
0
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.

Viewing all articles
Browse latest Browse all 24

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>