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",
"class": "MusicChangedSlowAction",
"language": "GDScript",
"path": "res://scripts/TriggerOnMusicChangedSlow.gd"
"path": "res://scripts/OnMusicChangedSlowTrigger.gd"
}, {
"base": "Action",
"class": "PlaySound",
@ -35,11 +35,6 @@ _global_script_classes=[ {
"path": "res://scripts/Library/Actions/TriggerBase.gd"
}, {
"base": "TriggerBase",
"class": "TriggerOnCollision",
"language": "GDScript",
"path": "res://scripts/Library/Actions/TriggerOnCollision.gd"
}, {
"base": "TriggerBase",
"class": "TriggerOnReady",
"language": "GDScript",
"path": "res://scripts/Library/Actions/TriggerOnReady.gd"
@ -50,7 +45,6 @@ _global_script_class_icons={
"MusicChangedSlowAction": "",
"PlaySound": "",
"TriggerBase": "",
"TriggerOnCollision": "",
"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():
collision_area.connect("body_entered", self, "_on_body_entered")
func _on_body_entered(body: Node):
triggerAction(body)
pass # Replace with function 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")