onCollisionEnd method

  1. @override
void onCollisionEnd(
  1. PositionComponent other
)
override

onCollisionEnd is called once when this object has stopped colliding with other.

Implementation

@override
void onCollisionEnd(PositionComponent other) {
  if (other is CollisionMapComponent || other is TileWithCollision) {
    if (--_tileCollisionCount == 0) resetInterval(_tileCollisionCountKey);
  }
  super.onCollisionEnd(other);
}