// Start is called before the first frame update void Start() { //set the panels as triggers trigger = panel.GetComponent(typeof(trapdoortrigger)) as trapdoortrigger; //set the doormoving as activatedoor doormoving = activateDoor.GetComponent(typeof(movedoor)) as movedoor; }
// Start is called before the first frame update void Start() { //set the panels as triggers pressure1 = panel1.GetComponent(typeof(presureplatetrigger)) as presureplatetrigger; pressure2 = panel2.GetComponent(typeof(presureplatetrigger)) as presureplatetrigger; //set the doormoving as activatedoor doormoving = activateDoor.GetComponent(typeof(movedoor)) as movedoor; }
// Start is called before the first frame update void Start() { //set the panels as triggers button1 = panel1.GetComponent(typeof(inputtrigger)) as inputtrigger; button2 = panel2.GetComponent(typeof(inputtrigger)) as inputtrigger; button3 = panel3.GetComponent(typeof(inputtrigger)) as inputtrigger; //set the doormoving as activatedoor doormoving = activateDoor.GetComponent(typeof(movedoor)) as movedoor; }