onDrag method

void onDrag(
  1. Vector2 globalDelta
)

Implementation

void onDrag(Vector2 globalDelta) {
  if (hasPanel) {
    gameRef.overlays.remove(overlayName);
    gameRef.overlays.add(overlayName);
  }
}