6 lines
176 B
GDScript3
6 lines
176 B
GDScript3
![]() |
extends Node2D
|
||
|
|
||
|
func _on_area_2d_input_event(viewport: Node, event: InputEvent, shape_idx: int) -> void:
|
||
|
if Input.is_mouse_button_pressed(MOUSE_BUTTON_LEFT):
|
||
|
print("check")
|