Quantcast
Channel: Latest Questions on Unity Answers
Viewing all articles
Browse latest Browse all 171066

Load Level on hitting/colliding Monster

$
0
0
First I used this script to load te level function OnTriggerEnter (other : Collider) { { Application.LoadLevel(3); } But that didn't work because it always loads the level. Then I added the line: If (other.gameObject.tag == "player") But then it doesn't load the level at all. Does anyone have tips on how to load the level when the monster touches the player?

Viewing all articles
Browse latest Browse all 171066

Trending Articles



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