Ejemplo n.º 1
0
 public void ButtonExit()
 {
     if (buttonEnabled)
     {
         cursor.CancelClicking();
     }
     print("Button Exit");
 }
	//KinectGestures.GestureListenerInterface virtual implementation
public void UserLost(long userId, int userIndex)
{
		//debug
		print ("UserLost");
		//User lost so disable icon
		personDetectedIcon.enabled = false; 
		//enable the crossed circle
		noPersonDetectedIcon.enabled = emptyCircleIcon.enabled =true;//false;
		//Cancel the cursor clicking phase because user was lost
		if(cursor!=null)cursor.CancelClicking ();
}
Ejemplo n.º 3
0
 public void UserLost(long userId, int userIndex)
 {
     print("UserLost");
     //Debug.Break ();
     personDetectedIcon.enabled   = false;
     noPersonDetectedIcon.enabled = emptyCircleIcon.enabled = true;       //false;
     if (cursor != null)
     {
         cursor.CancelClicking();
     }
 }
 //When the cursor exits a buttons bounds...
 public void ButtonExit()
 {
     //If the button is enabled make the cursor exit it's countdown click phase
     if (buttonEnabled)
     {
         if (cursor != null)
         {
             cursor.CancelClicking();
         }
         if (cursorDirect != null)
         {
             cursorDirect.CancelClicking();
         }
     }
     //debug
     print("Button Exit");
 }