Ejemplo n.º 1
0
            /// <summary>
            /// Checks if the system is currently interacting with/grabbing this object.
            /// </summary>
            /// <returns>bool</returns>
            private bool IsGrabbingObject()
            {
                // First check if interacting with this object
                if (interactionSystem.GetInteractionObject(effectorType) == interactionObject)
                {
                    // Next check if we are grabbing the object (interaction is active but paused)
                    if (interactionSystem.IsPaused(effectorType))
                    {
                        return(true);
                    }
                }

                return(false);
            }