fix turtle script error when killed while not spiking
This commit is contained in:
parent
1f77bc4513
commit
99a9595413
1 changed files with 2 additions and 1 deletions
|
@ -89,6 +89,7 @@ func die() -> void:
|
|||
# disable spiking
|
||||
can_spike = false
|
||||
# stop tween
|
||||
if spike_tween != null:
|
||||
spike_tween.kill()
|
||||
# disable hitbox
|
||||
spike_shape.set_deferred("disabled", true)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue