- Home /
Question by
Jake6192 · Nov 25, 2015 at 08:54 PM ·
c#unity5splash-screenquit
Quit splash screen not working
trying to setup my quit screen but cant get the input to work - the if statement isnt being picked up and im not sure why:
if ((Application.loadedLevelName == "quit_screen") && (Input.GetKey (KeyCode.Y)))
{
UnityEditor.EditorApplication.isPlaying = false;
Debug.Log ("Y Pressed");
} else if ((Application.loadedLevelName == "quit_screen") && (Input.GetKey (KeyCode.N)))
{
Application.LoadLevel (loaded_level);
Debug.Log ("N Pressed");
}
Comment
Your answer
Follow this Question
Related Questions
How to skip the splashscreen 0 Answers
Multiple Cars not working 1 Answer
Distribute terrain in zones 3 Answers
How do I change an UI image dynamically? 3 Answers
How do i get this objects y rotation the same as my cameras y rotation? 1 Answer