예제 #1
0
        public void MoveWithSnap()
        {
            ClampVelocity();
            Vector2?up = _velocity.y < 0f ? (Vector2?)null : Vector2.Up;

            _velocity = _owner.MoveAndSlideWithSnap(_velocity / GetTimeScale(), Vector2.Down, up) * GetTimeScale();
        }