hello , i’m beginner with unity so if i ask wrong tell me. i created this script , which supposed to deactive the object , but why the object still showed in the scene & game ?
no error
public class startup : MonoBehaviour {
GameObject theexecuteone;
GameObject theexecutetwo;
GameObject theexecutethree;
GameObject theexecutefour;
GameObject theexecutefive;
GameObject theexecutesix;
int helloaffff;
void startupclear() {
theexecuteone = GameObject.Find ("executionone");
theexecutetwo = GameObject.Find ("executiontwo");
theexecutethree = GameObject.Find ("executionthree");
theexecutefour = GameObject.Find ("executionfour");
theexecutefive = GameObject.Find ("executionfive");
theexecutesix = GameObject.Find ("executionsix");
theexecuteone.SetActive (false);
theexecutetwo.SetActive (false);
theexecutethree.SetActive (false);
theexecutefour.SetActive (false);
theexecutefive.SetActive (false);
theexecutesix.SetActive (false);
}
// Use this for initialization
void Start () {
startupclear ();
}
}