I set bosshp < 1 use Application.LoadLevel(nextLevel); (nexe scene)
when next scene Mouse Hidden ?
help me
thank you.
Script Boss
var hpboss:int=50;
var nextLevel:String;
function OnCollisionEnter (collision:Collision)
{
if ( hpboss < 1 )
{
transform.position.x= 6.236305;
transform.position.y= 1.518473;
transform.position.z= 1.362101;
yield WaitForSeconds( 3 );
Application.LoadLevel(nextLevel);
}
}
Script Boss (pause picture in scene)
function OnMouseEnter ()
{ Time.timeScale = 0; }
function OnMouseExit ()
{ Time.timeScale = 1; }