public void ToggleTracking() { if (!_isTracking) { _hasInitiatedTracking = true; var _networkGUI = FindObjectOfType <NetworkManagerHUD>(); _networkGUI.showGUI = false; } if (_simulate) { _simulator.ToggleTracking(); } else { _ws.Send(GazeIO.Request.toggleTracking); } }
public void ToggleTracking() { if (_simulated) { _simulator.ToggleTracking(); } else if (_tobii != null) { _tobii.ToggleTracking(); } else if (_ws != null) { if (!isTracking) { _hasInitiatedTracking = true; } _ws.Send(GazeIO.Request.toggleTracking); } }