public void SwitchToTaiko(System.IO.DirectoryInfo chartDirectory) { if (_sceneActionActive) { return; } if (ErrorPanel.activeSelf) { return; } _sceneActionActive = true; Logger.Log("LoadedChart: " + (LoadedChart != null)); AsyncOperation loadAO = SceneManager.LoadSceneAsync("Main"); loadAO.completed += ao => { _sceneActionActive = false; TaikoManager.OnSceneLoaded(LoadedChart, chartDirectory, null); }; }
public TaikoManager() { Instance = this; }