You need to build a gui for your password prompt.
A guide on building a GUI can be found here: http://docs.unity3d.com/Documentation/Components/GUIScriptingGuide.html
Your code for bringing up the GUI might look something like:
void checkDoor(){
if(doorIsClicked){
showPrompt = true;
}else{
showprompt = false;
}
}
void OnGUI(){
if(showPrompt){
//gui stuff goes here
}
}
↧