Esempio n. 1
0
 void Start()
 {
     lightbulb = GameObject.Find("Ampoule");
     hideObj   = reference.GetComponent <hideObject>();
     testLight = GetComponent <Light>();
     StartCoroutine(Flashing());
     asource = lightbulb.GetComponent <AudioSource>();
 }
Esempio n. 2
0
 // Start is called before the first frame update
 void Start()
 {
     greenSwitch = GameObject.Find("greenSwitch");
     powerBox    = GameObject.Find("spanar");
     hideObj     = powerBox.GetComponent <hideObject>();
 }