Quantcast
Channel: Answers for "Reload Level on Collision"
Browsing index pages (8 articles)

Answer by Muzz 1

var myLevel : String;function OnControllerColliderHit (hit : ControllerColliderHit){ if (hit.gameObject.name == "Runner") { Application.LoadLevel(myLevel); }}

View Article


Answer by Statement

If you're dealing with a character controller, then you should use OnControllerColliderHit.var myLevel : String; function OnControllerColliderHit (hit : ControllerColliderHit) { if (hit.gameObject.name...

View Article


Answer by Bram 1

change Application.LoadLevel(myLevel)to Application.LoadLevel(0)don't change anything in the build settings (you can but it's not needed

View Article

Image may be NSFW.
Clik here to view.

Answer by Statement

Have you added the scenes you want to be able to load to build settings?

View Article

Answer by Muzz 1

var myLevel : String;function OnControllerColliderHit (hit : ControllerColliderHit){ if (hit.gameObject.name == "Runner") { Application.LoadLevel(myLevel); }}

View Article


Answer by Statement

If you're dealing with a character controller, then you should use OnControllerColliderHit.var myLevel : String; function OnControllerColliderHit (hit : ControllerColliderHit) { if (hit.gameObject.name...

View Article

Answer by Bram 1

change Application.LoadLevel(myLevel)to Application.LoadLevel(0)don't change anything in the build settings (you can but it's not needed

View Article

Image may be NSFW.
Clik here to view.

Answer by Statement

Have you added the scenes you want to be able to load to build settings?

View Article

Browsing index pages (8 articles)


Latest Images