bugfix enemy spawner
This commit is contained in:
parent
5b659d7b9c
commit
2fd199612b
3 changed files with 7 additions and 6 deletions
|
|
@ -24,7 +24,6 @@ func _process(delta: float) -> void:
|
|||
func hit(_proj: PlayerProjectile, damage: float) -> bool:
|
||||
health -= damage
|
||||
if health <= 0.:
|
||||
print("boom!")
|
||||
SignalBus.building_destroyed.emit(self)
|
||||
collision_layer = 1 # World collision only
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue