Skip to content

Commit

Permalink
Update LanguageMenuUIController.cs
Browse files Browse the repository at this point in the history
  • Loading branch information
FoxxoTrystan committed May 1, 2024
1 parent 2b3a807 commit a938832
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@ public void OnStateEntered(GameplayState state)
{
DebugTools.Assert(_languageWindow == null);

var entManager = IoCManager.Resolve<IEntityManager>();
var clientLanguageSystem = entManager.EntitySysManager.GetEntitySystem<LanguageSystem>();
clientLanguageSystem.LanguagesUpdatedHook += LanguagesUpdatedHook;

Expand All @@ -59,6 +60,7 @@ public void OnStateExited(GameplayState state)
_languageWindow = null;
}

var entManager = IoCManager.Resolve<IEntityManager>();
var clientLanguageSystem = entManager.EntitySysManager.GetEntitySystem<LanguageSystem>();
clientLanguageSystem.LanguagesUpdatedHook -= LanguagesUpdatedHook;

Expand Down

0 comments on commit a938832

Please sign in to comment.