Quantcast
Viewing latest article 3
Browse Latest Browse All 8

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 == "Runner")
    {
        Application.LoadLevel(myLevel);
    }
}

Viewing latest article 3
Browse Latest Browse All 8

Trending Articles



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