MrEliptik / godot_twitch_games

Collection of small chat interactive games for Twitch
https://bento.me/mreliptik
MIT License
17 stars 5 forks source link

refactor game_config_manager.gd to be a singleton #76

Closed Drathal closed 1 year ago

Drathal commented 1 year ago

Refactor shared/utils/game_config_manager.gd to be a singleton. So that we don`t need to initialize it in every game.

remove:

@onready var game_config_manager := GameConfigManager.new(self)

The save method can then called like this:

GameConfigManager.save_config()