class_name NPCTest extends Node func onInteract(playerEntity: Player) -> void: print("Player has interacted with the NPC.") UI.TEXTBOX.setText("You have interacted with the NPC.")