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