Browse Source

Updating plugin autoload setup

pull/20/head
Ryan Reed 1 month ago
parent
commit
a63af34485
1 changed files with 8 additions and 3 deletions
  1. +8
    -3
      addons/save_load_system/plugin.gd

+ 8
- 3
addons/save_load_system/plugin.gd View File

@ -3,10 +3,15 @@ extends EditorPlugin
func _enter_tree() -> void: func _enter_tree() -> void:
add_autoload_singleton("SaveGameManager", "res://addons/save_load_system/autoloads/save_game_manager.gd")
pass
func _exit_tree() -> void: func _exit_tree() -> void:
# Clean-up of the plugin goes here. # Clean-up of the plugin goes here.
pass 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")

Loading…
Cancel
Save