Example #1
0
        void OnDisable()
        {
            CockpitStateController.EditLockedStateChanged.Remove(OnEditLockedStateChanged);

            // Auto-release surfaces when they are hidden
            if (attachedInteractionPoint)
            {
                attachedInteractionPoint.ForceUngrab(this);
            }
        }
Example #2
0
 void OnDisable()
 {
     // Auto-release controls when they are hidden
     if (attachedInteractionPoint)
     {
         attachedInteractionPoint.ForceUngrab(this);
     }
 }
        void OnDisable()
        {
            EDStateManager.EliteDangerousStarted.Listen(OnGameStart);

            // Auto-release controls when they are hidden
            if (attachedInteractionPoint)
            {
                attachedInteractionPoint.ForceUngrab(this);
            }
        }