I really hate posting my questions on these, I always feel someone out there has asked somewhere before, but I’m trying to make a code that uses numeric input to continue through some dialogue. You know the type, press 1 for this option, 2 for that, etc. Well, when the player hits the 1 button, it cycles through multiple entries, without letting you read or react to that which comes between. I’m not exactly the best Java programmer, but I don’t have the slightest idea on what I’m doing, or what the best course of action would be to prevent it. Here is the code, if it’s helpful.
function Update(){
if (Welcome.start == true){
guiText.text = "Welcome to the asylum, dear. \n 1. Where am I? \n 2. Who are you?";
if (Input.GetKeyDown("1")){
Welcome.start = false;
guiText.text = "You are in the asylum. Bedlam. Mad ye' are, apparently. \n I know little about these things, I'm naught but reception. \n 1. When can I leave? \n 2. Who are you?";
if (Input.GetKeyDown("1")){
guiText.text = "I wouldn't know nothin' 'bout that. Doctors control that sort of thing, don't they?";
}
}
}
}