conforms file names to consistant standard
This commit is contained in:
20
scripts/interact_button.gd
Normal file
20
scripts/interact_button.gd
Normal file
@@ -0,0 +1,20 @@
|
||||
class_name InteractButton
|
||||
extends StaticBody3D
|
||||
|
||||
signal button_interacted(value: int, callback: Hero)
|
||||
|
||||
@export var button_press_value: int = 0
|
||||
@export var press_cost: int = 0
|
||||
@export var hover_text: String = "[center]#Interact# to [do thing]"
|
||||
|
||||
|
||||
func press(callback_player: Hero) -> void:
|
||||
button_interacted.emit(button_press_value, callback_player)
|
||||
|
||||
|
||||
func enable_hover_effect() -> void:
|
||||
pass
|
||||
|
||||
|
||||
func disable_hover_effect() -> void:
|
||||
pass
|
||||
Reference in New Issue
Block a user