예제 #1
0
        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);
            };
        }
예제 #2
0
 public TaikoManager()
 {
     Instance = this;
 }