// for setting up which spotlight to use public void SetLight(SpotlightTracker lt) { light = lt; }
// Use this for initialization void Start() { spotlight = GameObject.Instantiate(lightPrefab, transform.position, Quaternion.identity).GetComponent <SpotlightTracker>(); manager = GameObject.FindGameObjectWithTag("Manager").GetComponent <Manager>(); }