weapon speed modifiers
This commit is contained in:
parent
ac8ea51d9c
commit
7c7f68b6f5
8 changed files with 37 additions and 21 deletions
|
|
@ -5,9 +5,11 @@ const active_bomb: StringName = "uid://dtbpyfdawb02b"
|
|||
func enter():
|
||||
machine.animation_player.play(machine.animation_prefix+"plant")
|
||||
machine.animation_player.animation_finished.connect(on_animation_finished)
|
||||
machine.speed_modifier = 0.0
|
||||
|
||||
func exit():
|
||||
machine.animation_player.animation_finished.disconnect(on_animation_finished)
|
||||
machine.speed_modifier = 1.0
|
||||
|
||||
func on_animation_finished(animation: StringName):
|
||||
if animation == machine.animation_prefix + "plant":
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue