Пример #1
0
        /// <summary>
        /// This method can be called to redo the action.
        /// </summary>
        public void Redo()
        {
            EditorGizmoSystem gizmoSystem = EditorGizmoSystem.Instance;

            gizmoSystem.TurnOffGizmos();
            GizmosTurnedOffMessage.SendToInterestedListeners(_activeGizmoType);
        }
Пример #2
0
        /// <summary>
        /// Executes the action.
        /// </summary>
        public void Execute()
        {
            // Execute the action if the gizmos are not already turned off
            EditorGizmoSystem gizmoSystem = EditorGizmoSystem.Instance;

            if (!gizmoSystem.AreGizmosTurnedOff)
            {
                gizmoSystem.TurnOffGizmos();
                GizmosTurnedOffMessage.SendToInterestedListeners(_activeGizmoType);
                EditorUndoRedoSystem.Instance.RegisterAction(this);
            }
        }