knockback; base enemy scene; police van
This commit is contained in:
parent
370eb54163
commit
d0bfe8d1be
13 changed files with 218 additions and 111 deletions
|
|
@ -21,7 +21,7 @@ func _process(delta: float) -> void:
|
|||
|
||||
shake_duration = move_toward(shake_duration, 0., delta)
|
||||
|
||||
func hit(_proj: PlayerProjectile, damage: float) -> bool:
|
||||
func hit(_proj: Node3D, damage: float) -> bool:
|
||||
health -= damage
|
||||
if health <= 0.:
|
||||
SignalBus.building_destroyed.emit(self)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue