Compare commits

..

No commits in common. "11d0ad0adb4f6719668eeb3cdd93cda2bffbb2aa" and "fc17b636a2bab8d9c2d25c39ea072d095ecc0ba2" have entirely different histories.

3 changed files with 15 additions and 13 deletions

View File

@ -22,7 +22,7 @@ _global_script_classes=[ {
"base": "Node", "base": "Node",
"class": "MusicChangedSlowAction", "class": "MusicChangedSlowAction",
"language": "GDScript", "language": "GDScript",
"path": "res://scripts/TriggerOnMusicChangedSlow.gd" "path": "res://scripts/OnMusicChangedSlowTrigger.gd"
}, { }, {
"base": "Action", "base": "Action",
"class": "PlaySound", "class": "PlaySound",
@ -35,11 +35,6 @@ _global_script_classes=[ {
"path": "res://scripts/Library/Actions/TriggerBase.gd" "path": "res://scripts/Library/Actions/TriggerBase.gd"
}, { }, {
"base": "TriggerBase", "base": "TriggerBase",
"class": "TriggerOnCollision",
"language": "GDScript",
"path": "res://scripts/Library/Actions/TriggerOnCollision.gd"
}, {
"base": "TriggerBase",
"class": "TriggerOnReady", "class": "TriggerOnReady",
"language": "GDScript", "language": "GDScript",
"path": "res://scripts/Library/Actions/TriggerOnReady.gd" "path": "res://scripts/Library/Actions/TriggerOnReady.gd"
@ -50,7 +45,6 @@ _global_script_class_icons={
"MusicChangedSlowAction": "", "MusicChangedSlowAction": "",
"PlaySound": "", "PlaySound": "",
"TriggerBase": "", "TriggerBase": "",
"TriggerOnCollision": "",
"TriggerOnReady": "" "TriggerOnReady": ""
} }

View File

@ -1,9 +1,6 @@
class_name TriggerOnCollision extends TriggerBase extends TriggerBase
export(NodePath) var collision_area export var collision_area
func _ready(): func _ready():
collision_area.connect("body_entered", self, "_on_body_entered") pass # Replace with function body.
func _on_body_entered(body: Node):
triggerAction(body)

View File

@ -0,0 +1,11 @@
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")