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