Beispiel #1
0
 /// <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);
     }
 }
Beispiel #2
0
 /// <summary>
 /// Unregister the interactor when the game object is disabled.
 /// </summary>
 protected virtual void OnDisable()
 {
     _eyeXHost.UnregisterInteractor(_interactorId);
 }
Beispiel #3
0
 public void OnDisable()
 {
     // Unregister the interactors when the game object is disabled.
     _eyeXHost.UnregisterInteractor(SpinButtonId);
     _eyeXHost.UnregisterInteractor(StopButtonId);
 }