first
This commit is contained in:
10
actors/Components/HurtBox.gd
Normal file
10
actors/Components/HurtBox.gd
Normal file
@@ -0,0 +1,10 @@
|
||||
extends Area3D
|
||||
class_name HurtBox
|
||||
|
||||
signal hitTaken(attack: Attack)
|
||||
|
||||
func _ready() -> void:
|
||||
monitoring = false
|
||||
|
||||
func hit(attack: Attack) -> void: ##Emits hitTaken signal to indicate the actor has been hit by an attack
|
||||
hitTaken.emit(attack)
|
||||
Reference in New Issue
Block a user