- Home /
How to make a box appear after pressing a button?
I'm working on an american football game and I'm trying to implement a fantasy draft like in the Madden games. The players are buttons and when I press them, I want the button to disappear and the player name to show up in a different location(kind of like an inventory system). I can make the button disappear but not reappear. Also, I have barely any experience coding. Here's what I have so far:
 private bool justinMiller_Drafted = true;
   
 if(justinMiller_Drafted){
     if(GUI.Button (new Rect(50,80,100,30),Justin_Miller)){
     justinMiller_Drafted = false;
     }
 }
               Comment
              
 
               
              Answer by Sparrowfc · Nov 19, 2013 at 06:11 AM
At least u should define an action to reappear the button right? Should it reappear automatically after a while or after u click the player name, I don't see it in your questions
Your answer
 
 
              koobas.hobune.stream
koobas.hobune.stream 
                       
                
                       
			     
			 
                