Smoke effect and animations revamp

This commit is contained in:
Rendo 2025-12-17 11:51:28 +05:00
commit 4c3e35d1fc
20 changed files with 106 additions and 29 deletions

View file

@ -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)