godot-third-person-basic-scene/addons/AMSG/Interactable/Interactable.gd

10 lines
143 B
GDScript

extends Node
class_name Interactable
func get_interaction_text():
return "Interact"
func interact():
print("Interacted with %s" % name)