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