onCollisionStart method
onCollisionStart is called in the first tick when this object starts
colliding with other.
Implementation
@override
void onCollisionStart(
Set<Vector2> intersectionPoints,
PositionComponent other,
) {
super.onCollisionStart(intersectionPoints, other);
if (other is TappableCircle) {
paint.color = NeonTheme.gold;
other.flashFromCollision();
}
}