refactor: Consolidate skill component logic into SkillComponentBase and update manager access to singletons.
This commit is contained in:
@@ -22,8 +22,8 @@ public partial class MainMenu : Control
|
||||
|
||||
public override void _Ready()
|
||||
{
|
||||
_saveSystem = GetNode<SaveSystem>(Constants.SaveSystemPath);
|
||||
_gameManager = GetNode<GameManager>(Constants.GameManagerPath);
|
||||
_saveSystem = SaveSystem.Instance;
|
||||
_gameManager = GameManager.Instance;
|
||||
_uiManager = GetNode<UIManager>(Constants.UIManagerPath);
|
||||
|
||||
NewGameButton.Pressed += OnNewGamePressed;
|
||||
|
||||
Reference in New Issue
Block a user