Allow events to grab systems and nodes.

This commit is contained in:
2025-01-07 22:51:18 -06:00
parent 75082e0598
commit c1b3601170
7 changed files with 22 additions and 12 deletions

View File

@@ -1,6 +1,8 @@
class_name CutsceneEvent
const Systems = preload("res://scripts/System/Systems.gd")
var started:bool = false;
var cutscene = null;
func _init() -> void:
pass
@@ -19,3 +21,12 @@ func end() -> void:
func reset() -> void:
started = false
func getCutscene():
return cutscene
func getCutsceneSystem():
return cutscene.cutsceneSystem;
func getSystems() -> Systems:
return getCutsceneSystem().get_node("..") as Systems;