The quit & replay buttons both work, but the quit popup button does not, any idea what I’m missing here? I would also like to assign it to the enter key.
public class Buttons : MonoBehaviour
{
public GameObject DialogPopup;
public void QuitPopup()
{
Debug.Log("X");
Input.GetKeyDown(KeyCode.KeypadEnter);
DialogPopup.SetActive(true);
}
public void LaunchGame()
{
Time.timeScale = 1;
SceneManager.LoadScene(1);
}
public void QuitGame()
{
Debug.Log("QUIT");
Application.Quit();
}
}