Quantcast
Channel: Answers for "how to detect if one object is touching another"
Viewing all articles
Browse latest Browse all 8

Answer by Wrymn

$
0
0
You need to write it like this: function OnCollisionEnter(col : Collision) { if (col.collider.name == "Player" ) { Application.LoadLevel(1); } } or if you want to use it with TAG: function OnCollisionEnter(col : Collision) { if (col.collider.tag == "Player" ) { Application.LoadLevel(1); } }

Viewing all articles
Browse latest Browse all 8

Trending Articles



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