/// <summary> /// Unregister the interactors when the game object is disabled. /// </summary> public void OnDisable() { foreach (var menuItem in _menuItems) { var interactorId = menuItem.name; _eyeXHost.UnregisterInteractor(interactorId); } }
/// <summary> /// Unregister the interactor when the game object is disabled. /// </summary> protected virtual void OnDisable() { _eyeXHost.UnregisterInteractor(_interactorId); }
public void OnDisable() { // Unregister the interactors when the game object is disabled. _eyeXHost.UnregisterInteractor(SpinButtonId); _eyeXHost.UnregisterInteractor(StopButtonId); }