fixed the issue where enemies could walk over a gap if it wasnt on a pathfinding node

This commit is contained in:
2024-03-29 21:58:40 +11:00
parent 3c28999cd9
commit 62d0dc0130
40 changed files with 205 additions and 138 deletions

View File

@ -1,11 +1,11 @@
class_name InteractButton extends StaticBody3D
signal button_interacted(value: int)
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 = "Press [Interact]"
func press() -> void:
button_interacted.emit(button_press_value)
func press(callback_player: Hero) -> void:
button_interacted.emit(button_press_value, callback_player)