From a63af34485ef63a02f7d7a5b814c26ae74e77f82 Mon Sep 17 00:00:00 2001 From: Ryan Reed Date: Thu, 27 Mar 2025 14:21:15 -0400 Subject: [PATCH] Updating plugin autoload setup --- addons/save_load_system/plugin.gd | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/addons/save_load_system/plugin.gd b/addons/save_load_system/plugin.gd index 0a509d9..1c03f28 100644 --- a/addons/save_load_system/plugin.gd +++ b/addons/save_load_system/plugin.gd @@ -3,10 +3,15 @@ extends EditorPlugin func _enter_tree() -> void: - add_autoload_singleton("SaveGameManager", "res://addons/save_load_system/autoloads/save_game_manager.gd") - - + pass func _exit_tree() -> void: # Clean-up of the plugin goes here. pass + + +func _enable_plugin() -> void: + add_autoload_singleton("SaveGameManager", "res://addons/save_load_system/autoloads/save_game_manager.gd") + +func _disable_plugin() -> void: + remove_autoload_singleton("SaveGameManager")