update
This commit is contained in:
@@ -21,7 +21,11 @@ namespace Ichni
|
||||
public StoryUIPage storyUIPage;
|
||||
public DialogUIPage dialogUIPage;
|
||||
public SongSelectionUIPage songSelectionUIPage;
|
||||
public TransitionUIPage transitionUIPage;
|
||||
public SettingsUIPage settingsUIPage;
|
||||
|
||||
public List<string> languageList;
|
||||
public List<string> displayLanguageList;
|
||||
}
|
||||
|
||||
public partial class MenuManager
|
||||
@@ -31,11 +35,11 @@ namespace Ichni
|
||||
private void Awake()
|
||||
{
|
||||
instance = this;
|
||||
Application.targetFrameRate = 120;
|
||||
}
|
||||
|
||||
private void Start()
|
||||
{
|
||||
Application.targetFrameRate = SettingsManager.instance.gameSettings.targetFrame;
|
||||
asyncOperation = SceneManager.LoadSceneAsync("GameScene");
|
||||
asyncOperation.allowSceneActivation = false;
|
||||
}
|
||||
@@ -48,16 +52,5 @@ namespace Ichni
|
||||
MenuInputManager.instance.gameInput.Menu.Disable();
|
||||
asyncOperation.allowSceneActivation = true;
|
||||
}
|
||||
|
||||
[Button]
|
||||
public void LanguageSwitch(string language)
|
||||
{
|
||||
//Set I2 Localization language
|
||||
I2.Loc.LocalizationManager.CurrentLanguage = language;
|
||||
//Debug.Log("Language switched to: " + language);
|
||||
|
||||
// Update the UI or any other components that depend on the language change
|
||||
I2.Loc.LocalizationManager.UpdateSources();
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user