示例#1
0
        /// <summary>
        /// It has awaken!
        /// </summary>
        private void Awake()
        {
            Logger.Trace("Awake-SongBrowserApplication()");

            Instance = this;

            _songBrowserUI = gameObject.AddComponent <SongBrowserUI>();
            _ppDownloader  = gameObject.AddComponent <ScoreSaberDatabaseDownloader>();
            _ppDownloader.onScoreSaberDataDownloaded += OnScoreSaberDataDownloaded;
        }
示例#2
0
 private void OnMenuSceneLoadedFresh(ScenesTransitionSetupDataSO data)
 {
     try
     {
         SongBrowserApplication.OnLoad();
     }
     catch (Exception e)
     {
         Logger.Exception("Exception on fresh menu scene change: " + e);
     }
 }
        /// <summary>
        /// It has awaken!
        /// </summary>
        private void Awake()
        {
            Logger.Trace("Awake-SongBrowserApplication()");

            Instance = this;

            // Init Model, load settings
            _songBrowserModel = new SongBrowserModel();
            _songBrowserModel.Init();

            // Init browser UI
            _songBrowserUI       = gameObject.AddComponent <SongBrowserUI>();
            _songBrowserUI.Model = _songBrowserModel;
        }