onTap method
Should be called when the user taps on this interactable.
Implementation
@override
ActionResult onTap(EscapeGame escapeGame) {
if (padlock?.isLocked == true) {
return ActionResult.needAction(object: padlock);
}
return super.onTap(escapeGame);
}