I want a restart button to appear after my player dies but it seems to always be on screen. How can I make it appear upon players death?
i’m not sure how your game is set up, but try this:
//set bool to check if player is alive or not
bool isAlive;
OnGUI()
{
if(!isAlive)
{
if(GUI.Button(new Rect(buttonRect),"ResetButton"))
{
// the scene you want to load
Application.LoadLevel("MyLevel");
}
}
}