- Home /
Video showing in the new level
when the video stop playing and the new level loads it show the video in the level and i don't know what happen here my script if anyone like to help me out
var movTexture : MovieTexture;
function Start () { renderer.material.mainTexture = movTexture; movTexture.Play(); }
function Update(){ if(!movTexture.isPlaying){ //movTexture.Stop();
//Load the level with index 1
Application.LoadLevelAdditive(1);
//Load the level named "Main Menu 1".
Application.LoadLeve("Main Menu 1");
}
}
Comment