Grenade bounce and radius
This commit is contained in:
parent
f99108c4f0
commit
11eb875d2e
6 changed files with 28 additions and 16 deletions
|
|
@ -10,8 +10,9 @@ func _exit() -> void:
|
|||
machine.animation_player.animation_finished.disconnect(on_animation_finished)
|
||||
|
||||
func on_animation_finished(animation):
|
||||
if animation == machine.animation_prefix + "throw":
|
||||
if animation == machine.animation_prefix + "throw" or animation == machine.animation_prefix + "shoot":
|
||||
transition.emit("Idle")
|
||||
|
||||
|
||||
func fire() -> void:
|
||||
if machine.ammo == 0:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue