public LightFacade(Light1 light1, Light2 light2, Light3 light3, Light4 light4, Light5 light5) { this.light1 = light1; this.light2 = light2; this.light3 = light3; this.light4 = light4; this.light5 = light5; }
// Start is called before the first frame update void Start() { light1 = light1Obj.GetComponent <Light1>(); light2 = light2Obj.GetComponent <Light2>(); light3 = light3Obj.GetComponent <Light3>(); light4 = light4Obj.GetComponent <Light4>(); light5 = light5Obj.GetComponent <Light5>(); lightFacade = new LightFacade(light1, light2, light3, light4, light5); winText.SetActive(false); GameStart(); }