moveRight method

  1. @override
bool moveRight(
  1. double speed, {
  2. bool notifyOnMove = true,
})
override

Move player to Right

Implementation

@override
bool moveRight(double speed, {bool notifyOnMove = true}) {
  animation?.play(SimpleAnimationEnum.runRight);
  return super.moveRight(speed, notifyOnMove: notifyOnMove);
}