public static void Stop() { if (_eyeTrackingProvider == null) { return; } _g2om.Destroy(); _eyeTrackingProvider.Destroy(); if (_updaterGameObject != null) { #if UNITY_EDITOR if (Application.isPlaying) { Object.Destroy(_updaterGameObject.gameObject); } else { Object.DestroyImmediate(_updaterGameObject.gameObject); } #else Object.Destroy(_updaterGameObject.gameObject); #endif } _updaterGameObject = null; _g2om = null; _eyeTrackingProvider = null; }
public void Destroy() { if (_provider == null) { return; } _provider.Destroy(); _provider = null; }
public void Destroy() { _selectedProvider.Destroy(); }