moveRight method
Move player to Right
Implementation
@override
void moveRight(double speed, {VoidCallback? onCollision}) {
animation?.play(SimpleAnimationEnum.runRight);
super.moveRight(speed, onCollision: onCollision);
}
Move player to Right
@override
void moveRight(double speed, {VoidCallback? onCollision}) {
animation?.play(SimpleAnimationEnum.runRight);
super.moveRight(speed, onCollision: onCollision);
}