Question by
shashwat2001 · Jun 11, 2016 at 11:37 AM ·
ontriggerenter
how to load a scene using OnTriggerEnter
it never loads the scene which i want it to load . I tried it with is trigger , without is trigger and the same with is kinematic but nothing happens.
var levelloader : String;
var object : GameObject;
function OnTriggerEnter(otherObj: Collider){
if (otherObj.tag == object){
Application.LoadLevel(levelloader);
}
} Please tell me what to do
Comment