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