2025-03-10 17:00:30 -06:00
|
|
|
extends Node3D
|
|
|
|
|
|
|
|
@onready var animation: AnimationPlayer = $AnimationPlayer
|
2025-03-12 12:56:03 -06:00
|
|
|
@onready var dust_animation: AnimationPlayer = %DustAnimation
|
2025-03-29 19:32:24 -06:00
|
|
|
@onready var open_sfx: AudioStreamPlayer3D = %OpenSFX
|
2025-03-10 17:00:30 -06:00
|
|
|
|
|
|
|
|
|
|
|
func open() -> void:
|
|
|
|
animation.play("open")
|
2025-03-12 12:56:03 -06:00
|
|
|
dust_animation.play("spray")
|
2025-03-29 19:32:24 -06:00
|
|
|
open_sfx.play()
|
2025-03-13 12:25:04 -06:00
|
|
|
|
|
|
|
|
|
|
|
func close() -> void:
|
|
|
|
# TODO bespoke close anim?
|
|
|
|
animation.play_backwards("open")
|