Beispiel #1
0
    public void ProcessMRIButtonAction()
    {
        // TurnOnMRIMode();

        /* if (ToggleIsCurrentlyInMRIMode())
         * {
         *   SetMRICollectionActive();
         *   customMessages.SendMRIButtonMessage(isInMRIMode);
         * }
         * else
         * {
         *   Debug.Log("MRIManager: Cannot currently switch modes.");
         * }*/

        if (stateAccessor.ChangeMode(StateAccessor.Mode.MRI))
        {
            LoadOrUnloadMRIObjects(true);
            if (customMessages != null)
            {
                customMessages.SendMRIButtonMessage(isInMRIMode);
            }
        }
    }