Skip to content

Commit

Permalink
Update LanguageMenuUIController.cs
Browse files Browse the repository at this point in the history
  • Loading branch information
FoxxoTrystan committed Apr 29, 2024
1 parent 937a4d9 commit 21dd8dd
Showing 1 changed file with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -42,8 +42,9 @@ public void OnStateEntered(GameplayState state)
{
DebugTools.Assert(_languageWindow == null);

var clientLanguageSystem = IoCManager.Resolve<IEntitySystemManager>().GetEntitySystem<LanguageSystem>();
clientLanguageSystem.LanguagesUpdatedHook += LanguagesUpdatedHook;
var _IEntitySystemManager = IoCManager.Resolve<IEntitySystemManager>();
var _clientLanguageSystem = _IEntitySystemManager.GetEntitySystem<LanguageSystem>();
_clientLanguageSystem.LanguagesUpdatedHook += LanguagesUpdatedHook;

_languageWindow = UIManager.CreateWindow<LanguageMenuWindow>();
LayoutContainer.SetAnchorPreset(_languageWindow, LayoutContainer.LayoutPreset.CenterTop);
Expand Down

0 comments on commit 21dd8dd

Please sign in to comment.