Hy,
here my code in a function OnGUI()
if (pointinfo1)
{
GUI.Box (Rect(Screen.width * 0.3 + 5, 0, Screen.width * 0.68, Screen.height*0.5), "Vous etes devant le batiment G");
GUI.Label (Rect(Screen.width * 0.3 + 25, 20, Screen.width * 0.63, 50), "Les batiments G sont a la fois des batiments de cours et des batiments de la scolarite. Au debut de l'annee vous serez invite a vous rendre en G08 pour achever votre inscription. Les grands amphitheatre G09 et G10 se situent ici.");
if (GUI.Button (Rect(Screen.width * 0.3 + 25, 70, 250, 20), "Je veux aller a la scolarité"))
{
GUI.Label (Rect(Screen.width * 0.3 + 300, 60, 200,300), Gscol);
}
if (GUI.Button (Rect(Screen.width * 0.3 + 25, 95, 250, 20), "Je veux lire ou emprunter un livre"))
{
GUI.Label (Rect(Screen.width * 0.3 + 300, 60, 200,300), Gbu);
}
if (GUI.Button (Rect(Screen.width * 0.3 + 25, 120, 250, 20), "Je veux avoir acces à un ordinateur"))
{
GUI.Label (Rect(Screen.width * 0.3 + 300, 60, 200,300), Gordi);
}
if (GUI.Button (Rect(Screen.width * 0.3 + 25, 145, 250, 20), "Je suis malade, ou est l'infirmerie"))
{
GUI.Label (Rect(Screen.width * 0.3 + 300, 60, 200,300), Ginfirmerie);
}
if (GUI.Button (Rect(Screen.width * 0.3 + 25, 170, 250, 20), "J'ai cours dans les Batiments A"))
{
GUI.Label (Rect(Screen.width * 0.3 + 300, 60, 200,300), Gbata);
}
if (GUI.Button (Rect(Screen.width * 0.3 + 25, 195, 250, 20), "Je veux pratiquer un sport"))
{
GUI.Label (Rect(Screen.width * 0.3 + 300, 60, 200,300), Gsiuap);
}
}
My problem is that on click, labels don’t show on the screen.
GUI.Label (Rect(Screen.width * 0.3 + 300, 60, 200,300), Gscol);
GUI.Label (Rect(Screen.width * 0.3 + 300, 60, 200,300), Gbu);
...