Beispiel #1
0
 // Update is called once per frame
 void Update()
 {
     if (processor != null)
     {
         if (processor.hasHand)
         {
             GetComponent<Renderer>().material = tex_green;
         }
         else
         {
             GetComponent<Renderer>().material = tex_red;
         }
     }
     else
     {
         processor = FindObjectOfType<LeapWebProcessor>();
     }
 }
Beispiel #2
0
 // Use this for initialization
 void Start()
 {
     processor = FindObjectOfType<LeapWebProcessor>();
 }