예제 #1
0
        private bool IsSwiped(Vector2 baseRotationVector)
        {
            bool correctLength = FinchCore.GetSwipe(Chirality).magnitude > 0.4f;
            bool correctTime   = FinchCore.GetSwipeTime(Chirality) < 0.5f;
            bool correctAngle  = Vector2.Angle(baseRotationVector, FinchCore.GetSwipe(Chirality).normalized) < 22.5f;

            return(correctLength && correctTime && correctAngle);
        }