Beispiel #1
0
 public void PublishReading(BGBodyReading reading, IBGBodyTracker tracker)
 {
     if (tracker != currentTracker) {
         print ("Warning: PublishReading cannot be called from a IBGBodyTracker who is not the current tracker.");
         return;
     }
     foreach (IBGBodyReadingListener listener in listeners) {
         listener.HandleReading (reading);
     }
 }
Beispiel #2
0
 public void PublishReading(BGBodyReading reading, IBGBodyTracker tracker)
 {
     if (tracker != currentTracker)
     {
         print("Warning: PublishReading cannot be called from a IBGBodyTracker who is not the current tracker.");
         return;
     }
     foreach (IBGBodyReadingListener listener in listeners)
     {
         listener.HandleReading(reading);
     }
 }
Beispiel #3
0
 private void SetupTracker()
 {
     if (Application.platform == RuntimePlatform.IPhonePlayer || Application.platform == RuntimePlatform.Android)
     {
         currentTracker = bodyTrackerNative;
         //bodyTrackerNative.EnableTracking ();
     }
     else if (useWebcamInEditor)
     {
         currentTracker = bodyTrackerMono;
         //bodyTrackerMono.EnableTracking ();
         bodyTrackerKeyboard.DisableTracking();
     }
     else
     {
         currentTracker = bodyTrackerKeyboard;
         bodyTrackerMono.DisableTracking();
         //bodyTrackerKeyboard.EnableTracking ();
     }
     currentTracker.SetPlayerCount(playerCount);
 }
Beispiel #4
0
 private void SetupTracker()
 {
     if (Application.platform == RuntimePlatform.IPhonePlayer || Application.platform == RuntimePlatform.Android) {
         currentTracker = bodyTrackerNative;
         //bodyTrackerNative.EnableTracking ();
     } else if (useWebcamInEditor) {
         currentTracker = bodyTrackerMono;
         //bodyTrackerMono.EnableTracking ();
         bodyTrackerKeyboard.DisableTracking ();
     } else {
         currentTracker = bodyTrackerKeyboard;
         bodyTrackerMono.DisableTracking ();
         //bodyTrackerKeyboard.EnableTracking ();
     }
     currentTracker.SetPlayerCount(playerCount);
 }