using System; using System.Collections; using System.Collections.Generic; using AK.Wwise; using Sirenix.OdinInspector; using UnityEngine; using UnityEngine.SceneManagement; namespace Ichni.Menu { public partial class MenuManager : MonoBehaviour { AsyncOperation asyncOperation; private void Awake() { Application.targetFrameRate = 120; /*asyncOperation = SceneManager.LoadSceneAsync("GameScene"); asyncOperation.allowSceneActivation = false;*/ } } public partial class MenuManager : MonoBehaviour { public Sprite testSprite; public Switch testChapterSwitch; public Switch testMusicSwitch; public void TestEnterGame() { InformationTransistor.instance.SetInformation( "Chapter 1", "Chaos Zone", "s/a_荒しそら & LaRin", "Hard", "None", "Trader", Color.red, testSprite,testChapterSwitch, testMusicSwitch); SceneManager.LoadScene("GameScene"); } [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(); } } }