/// <summary>
 /// Function that is called whenever a user re-enters the range of the Kinect.
 /// This function set the user to active and increases the nr. of players
 /// </summary>
 /// <param name="sender">The object that called this function</param>
 /// <param name="e">The events associated with this call; used to retrieve the users id</param>
 private void OnUserReEnter(object sender, UserReEnterEventArgs e)
 {
     Logger.Log("Re-enter user: " + e.ID);
     if (TrackedUsers.ContainsKey(e.ID))
     {
         StateManager.Instance.NumberOfPlayers++;
         TrackedUsers[e.ID].Active = true;
     }
 }
Example #2
0
		void FUserGenerator_UserReEnter(object sender, UserReEnterEventArgs e)
		{
			FUserData[e.ID].Present = true;
		}