Пример #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);
     }
 }
Пример #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);
     }
 }
Пример #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);
 }
Пример #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);
 }