MrEliptik / godot_twitch_games

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

refactor game_config_manager.gd to be a singleton #76

Closed Drathal closed 10 months ago

Drathal commented 10 months 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()