first_anniversary_godot_jam/scripts/OnMusicChangedSlowTrigger.gd

12 lines
276 B
GDScript

class_name MusicChangedSlowAction extends Node
func _ready():
MusicSingleton.register_change_action(self)
MusicSingleton.change_music()
func _exit_tree():
MusicSingleton.unregister_change_action(self)
func execute() -> void:
print("Executed OnMusicChangedSlowAction")