onMouseScreenTapDown method
Implementation
void onMouseScreenTapDown(int pointer, Vector2 position, MouseButton button) {
Vector2 realPosition = position;
if (!isHud) {
realPosition = gameRef.screenToWorld(realPosition);
}
if (containsPoint(realPosition)) {
_buttonClicked = button;
_pointer = pointer;
onMouseTapDown(pointer, position, button);
}
}