예제 #1
0
        private void rotatePlayer()
        {
            if (!registeredActions.Any() || registeredActions.Last() == lastAction)
            {
                return;
            }

            FinishTransforms();
            float FacingAngle = registeredActions.Last().ToAngle();

            this.ScaleTo(new Vector2(1.1f), 50).Then().ScaleTo(1, 50);

            rotateToClosestEquivalent(FacingAngle);
            lastAction = registeredActions.Last();
        }