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); } }
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); } }
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); }
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); }