moveToPlayer method

void moveToPlayer({
  1. bool snap = true,
})

Implementation

void moveToPlayer({
  bool snap = true,
}) {
  gameRef.player.let((i) {
    follow(i, snap: snap);
  });
}