seeding-planets/entities/interactables/scripts/interactable.gd
2025-08-18 10:32:16 +02:00

8 lines
168 B
GDScript

extends Area2D
class_name Interactable
@export var actions : Array[InteractableAction] = []
func interact(p : Player):
for a in actions:
a.action(p, self)