Esempio n. 1
0
        /// <summary>
        /// Stops rotating the object.
        /// </summary>
        public void StopRotating()
        {
            if (!IsRotating)
            {
                return;
            }

            // Remove self as a modal input handler.
            InputManager.Instance.PopModalInputHandler();

            IsRotating = false;
            StoppedRotating.RaiseEvent();
        }
Esempio n. 2
0
    /// <summary>
    /// Stops rotating the object.
    /// </summary>
    public void StopRotating()
    {
        if (!isRotating)
        {
            return;
        }

        // Remove self as a modal input handler
        InputManager.Instance.PopModalInputHandler();

        isRotating         = false;
        currentInputSource = null;
        StoppedRotating.RaiseEvent();
    }