using System; using System.Collections; using System.Collections.Generic; using AK.Wwise; using Ichni.UI; using Sirenix.OdinInspector; using UnityEngine; using UnityEngine.SceneManagement; using UnityEngine.Serialization; namespace Ichni { public partial class MenuManager : MonoBehaviour { public static MenuManager instance; [FormerlySerializedAs("preparePage")] public PrepareUIPage prepareUIPage; } public partial class MenuManager { AsyncOperation asyncOperation; private void Awake() { instance = this; Application.targetFrameRate = 120; } private void Start() { asyncOperation = SceneManager.LoadSceneAsync("GameScene"); asyncOperation.allowSceneActivation = false; } } public partial class MenuManager { 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); 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(); } } }