This commit is contained in:
2026-05-16 11:51:19 +02:00
commit 80c1b6a4e4
229 changed files with 5191 additions and 0 deletions

12
scripts/clickable.gd Normal file
View File

@@ -0,0 +1,12 @@
class_name Clickable
extends Node
@export var actions: Array[ClickAction] = []
@export var cursor_hint: String = "interact"
signal clicked(hit_position: Vector3)
func on_clicked(hit_position: Vector3) -> void:
clicked.emit(hit_position)
for action in actions:
action.execute(self, hit_position)