- Home /
 
turn on a game object?
Hello. How an I turn on an an object using an if statement? Like this(MainLvl is a static variable):
if (MainLvl >0); //Turn on my projectile upgrade//
 
               
               Thanks.
               Comment
              
 
               
               
               Best Answer 
              
 
              Answer by Kourosh · Dec 11, 2010 at 05:41 AM
If your answer to Justin's question is yes you may use:
gameObject.active = true/false;
Your answer