extends Node3D # Get a reference to the Bear_FX AnimationPlayer node @onready var fx_player: AnimationPlayer = $Bear_FX/AnimationPlayer func bear_fx_jump_smash(): $Bear_FX/Bear_fx_jump_smash.visible = true # Play the jump smash animation when the mesh turns on fx_player.play("Bear_fx_jump_smash") func bear_fx_claw_attack_R(): $Bear_FX/Bear_fx_claw_attack_R.visible = true # Play the jump smash animation when the mesh turns on fx_player.play("Bear_fx_claw_attack_R") func bear_fx_claw_attack_L(): $Bear_FX/Bear_fx_claw_attack_L.visible = true # Play the jump smash animation when the mesh turns on fx_player.play("Bear_fx_claw_attack_L") func bear_fx_smash_hit(): $Bear_FX/Bear_fx_smash_hit.visible = true # Play the jump smash animation when the mesh turns on fx_player.play("Bear_fx_smash_hit") func mesh_off(): $Bear_FX/Bear_fx_smash_hit.visible = false $Bear_FX/Bear_fx_claw_attack_L.visible = false $Bear_FX/Bear_fx_claw_attack_R.visible = false $Bear_FX/Bear_fx_jump_smash.visible = false