2024-04-22 15:32:19 +08:00
|
|
|
extends Area3D
|
|
|
|
|
|
|
|
|
2024-04-30 11:25:39 +08:00
|
|
|
func _on_input_event(camera: Node, event: InputEvent, position: Vector3, normal: Vector3, shape_idx: int) -> void:
|
|
|
|
if event is InputEventMouseButton and event.pressed and event.button_index == MOUSE_BUTTON_LEFT:
|
|
|
|
$"../..".clickLPslSignal.emit()
|
2024-04-22 15:32:19 +08:00
|
|
|
|
|
|
|
func _on_mouse_entered() -> void:
|
|
|
|
Input.set_default_cursor_shape(Input.CursorShape.CURSOR_POINTING_HAND)
|
|
|
|
|
|
|
|
|
|
|
|
func _on_mouse_exited() -> void:
|
|
|
|
Input.set_default_cursor_shape(Input.CursorShape.CURSOR_ARROW)
|