2023-11-08 14:28:55 +11:00
|
|
|
extends StaticBody3D
|
|
|
|
class_name InteractButton
|
|
|
|
|
|
|
|
signal button_interacted(value)
|
|
|
|
|
|
|
|
@export var button_press_value := 0
|
|
|
|
@export var press_cost := 0
|
2023-11-09 20:37:12 +11:00
|
|
|
@export var hover_text := "Press [Interact]"
|
2023-11-08 14:28:55 +11:00
|
|
|
|
|
|
|
func press():
|
|
|
|
button_interacted.emit(button_press_value)
|