knife
This commit is contained in:
parent
83839459ff
commit
6b5e768faf
15 changed files with 4250 additions and 2343 deletions
12
scripts/weapon_system/knife/knife_intro.gd
Normal file
12
scripts/weapon_system/knife/knife_intro.gd
Normal file
|
|
@ -0,0 +1,12 @@
|
|||
extends WeaponState
|
||||
|
||||
func enter() -> void:
|
||||
machine.animation_player.play(machine.animation_prefix + "intro")
|
||||
machine.animation_player.animation_finished.connect(on_animation_finished)
|
||||
|
||||
func exit() -> void:
|
||||
machine.animation_player.animation_finished.disconnect(on_animation_finished)
|
||||
|
||||
func on_animation_finished(animation):
|
||||
if animation == machine.animation_prefix + "intro":
|
||||
transition.emit("Idle")
|
||||
Loading…
Add table
Add a link
Reference in a new issue