Esempio n. 1
0
        private void MoveHorizontal(Vector2 _direction)
        {
            HorizontalMovement = new Vector2(_direction.X, HorizontalMovement.Y);

            if (_direction.X > 0)
            {
                this.richting = LoopRichting.rechts;
            }
            else if (_direction.X < 0)
            {
                this.richting = LoopRichting.links;
            }

            movecommand.ExecuteHorizontal(this, _direction);
        }