Beispiel #1
0
 void Start()
 {
     if (transform.name.Contains("Lightswitch_02"))
     {
         typeOfSwitch = switchType.Outdoor;
     }
     else
     {
         typeOfSwitch = switchType.Indoor;
     }
     ri = FindObjectOfType <Raycaster_Interactions> ();
 }
Beispiel #2
0
 void Start()
 {
     current = GetComponent <Renderer> ();
     //light = GetComponentInChildren<Light> ();
     ri = FindObjectOfType <Raycaster_Interactions> ();
 }