diff --git a/src/classes/entrypoint.gd b/src/classes/entrypoint.gd index 665aa0e..34cc5c5 100644 --- a/src/classes/entrypoint.gd +++ b/src/classes/entrypoint.gd @@ -19,6 +19,7 @@ class_name PresencodeEntrypoint var core: Core var logger: CoreLoggerInstance +var api: PresencodeCommunication # Required methods func initialize() -> void: await core.logger.crash("PresencodeEntrypoint", "Method initialize was not overriden") diff --git a/src/presenloader.gd b/src/presenloader.gd index 406034e..40395b0 100644 --- a/src/presenloader.gd +++ b/src/presenloader.gd @@ -241,6 +241,7 @@ func inject_entrypoint() -> void: # Update variables entrypoint_node.core = core entrypoint_node.logger = core.logger.get_instance(communication.get_source_path("src/" + manifest["entrypoint"]), entrypoint_node) + entrypoint_node.communication = communication # Add to SceneTree get_tree().root.add_child(entrypoint_node)