Пример #1
0
        public override Capture UpdateCapture(InputState input, CaptureData data)
        {
            if (input.bLeftShoulderReleased || input.bRightShoulderReleased)
            {
                cockpit.ActiveCamera.SetTargetVisible(false);

                HandInfo hi = (HandInfo)data.custom_data;
                if (hi.eMode == ActionMode.SetWorldScale)
                {
                    hi.CompleteSetWorldScale(cockpit);
                }

                return(Capture.End);
            }
            else
            {
                HandInfo hi = (HandInfo)data.custom_data;
                if (hi.eMode == ActionMode.SetWorldScale)
                {
                    return(Update_SetWorldScale(input, data));
                }
                else
                {
                    return(Update_TransformCamera(input, data));
                }
            }
        }