scene et collider

Hello I am French, and the text dratuit by google :-), I have the following code.

isQuitBtn var = false;

OnMouseEnter function ()
{
renderer.material.color = Color.Red;
}

OnMouseExit function ()
{
renderer.material.color = Color.White;
}

OnMouseUp function ()
{
if (isQuitBtn)
{
Application.Quit ();
}
else
{
Application.LoadLevel (1);
}
}

it works but I would like to have the scrip that can automatically download the next stage, without having to click the button. a collider.
great and thank you in advance. :slight_smile:


Hello je suis francophone , et le texte dratuit par google :slight_smile: , j ai le code suivant .

var isQuitBtn = false;

function OnMouseEnter ()
{
renderer.material.color = Color.red;
}

function OnMouseExit ()
{
renderer.material.color = Color.white;
}

function OnMouseUp()
{
if(isQuitBtn)
{
Application.Quit();
}
else
{
Application.LoadLevel(1);
}
}

il fonctionne mais j aimerais avoir le scrip qui permet de telecharger la scene suivante automatiquement , sans devoir cliquer sur le bouton . par un collider.
et grand merci d’avance . :slight_smile:

Wrong section ! and you must go to french forum

:slight_smile: