/// <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; }
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; }