mtd/Scripts/interact_button.gd

12 lines
249 B
GDScript3
Raw Normal View History

extends StaticBody3D
class_name InteractButton
signal button_interacted(value)
@export var button_press_value := 0
@export var press_cost := 0
@export var hover_text := "Press [Interact]"
func press():
button_interacted.emit(button_press_value)