Smoke effect and animations revamp
This commit is contained in:
parent
d752dd17dc
commit
4c3e35d1fc
20 changed files with 106 additions and 29 deletions
|
|
@ -84,3 +84,11 @@ func alternate_state() -> void:
|
|||
func switch_mode() -> void:
|
||||
if current_state != null:
|
||||
current_state.switch_mode()
|
||||
|
||||
func play(animation_name: StringName):
|
||||
if animation_player.current_animation == animation_prefix + animation_name:
|
||||
animation_player.stop()
|
||||
animation_player.play(animation_prefix + animation_name)
|
||||
|
||||
func queue(animation_name: StringName):
|
||||
animation_player.queue(animation_prefix + animation_name)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue