public void StartAnimation(MovementManager.Direction Direction, bool showAnimation = true) { switch (Direction) { case MovementManager.Direction.down: currentFrameY = 0; break; case MovementManager.Direction.left: currentFrameY = 1; break; case MovementManager.Direction.right: currentFrameY = 2; break; case MovementManager.Direction.up: currentFrameY = 3; break; } if (showAnimation) { timerSwitch = true; } }
protected override void move(MovementManager.Direction direction, int speed) { movementManager.MoveSpritesheet(this, direction, speed); }
protected virtual void move(MovementManager.Direction direction, int speed) { movementManager.MoveToDirection(this, direction, speed); }