// Use this for initialization void Start() { origin = GameObject.FindGameObjectWithTag("Origin"); allMirrors = GameObject.FindGameObjectsWithTag("Mirror"); myBeams = origin.GetComponent <LightBeams>(); maximumBends = myBeams.maxVertices; lineRenderer = origin.GetComponent <LineRenderer>(); //Use this to reset all the lights if chosen }
// Use this for initialization void Start () { origin = GameObject.FindGameObjectWithTag("Origin"); allMirrors = GameObject.FindGameObjectsWithTag("Mirror"); myBeams = origin.GetComponent<LightBeams>(); maximumBends = myBeams.maxVertices; lineRenderer = origin.GetComponent<LineRenderer>(); //Use this to reset all the lights if chosen }