Allow events to grab systems and nodes.
This commit is contained in:
@@ -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;
|
||||
|
Reference in New Issue
Block a user