Пример #1
0
    private void ManipulationEnded()
    {
        if (ObjectManipulationInProgress)
        {
            if (ManipulatedObject != null)
            {
                UtilitiesScript.Instance.DisableOutline(ManipulatedObject);
                UtilitiesScript.Instance.EnableGravity(ManipulatedObject, TurtorialModeEnabled ? false : true);
            }

            ObjectManipulationInProgress = false;
            ManipulatedObject            = null;
            TouchedObject = null;

            if (DataCollectionMode)
            {
                dataScript.ManipulationEnded(trackingHand.hand);
            }

            EventManager.TriggerEvent("manipulation_finished");
        }
    }