GuiText Button

Wazzup!
Can somone give me a hint how to load GuiText if some condition is true. And how to make this GuiText a used button…

Hi…

you can create a static var for a boolean value… for instance…

static var activate = false;

function Update(){
if (activate){
activate = false;
// Do what you want with the GUIText
}
}

ok…
Let me explain it like this:
I just want “press to restart” line to appear when my player is dead, i’m not to friendly with unity Gui, so i need a llittle help.

Like what spaceman said before, it’s actually quite easy. Lets say you have a restart variable in your code already made:

if (restart == true)
{
if (Gui.Button(Rect(All of the button stuff, "Restart")
    RestartGame()
    restart == false
//restart can be a part of "RestartGame()" but I wanted to show that you can turn off the value via a button
}

There’s really nothing to it. Just have the button inside an if statement for a boolean, and whenever that boolean’s on, the button will show up.