protected override void DidActivate(bool firstActivation, ActivationType activationType) { _beatmapCharacteristics = Resources.FindObjectsOfTypeAll <BeatmapCharacteristicSO>(); _beatmapLevelsModel = Resources.FindObjectsOfTypeAll <BeatmapLevelsModelSO>().FirstOrDefault(); if (firstActivation) { _radioNavController = BeatSaberUI.CreateViewController <RoomNavigationController>(); _radioNavController.didFinishEvent += () => { LeaveChannel(); }; _inGameViewController = BeatSaberUI.CreateViewController <InGameScreenViewController>(); _inGameViewController.playPressedEvent += PlayNow_Pressed; _nextSongScreenViewController = BeatSaberUI.CreateViewController <NextSongScreenViewController>(); _nextSongScreenViewController.skipPressedEvent += SkipSong_Pressed; _resultsScreenViewController = BeatSaberUI.CreateViewController <ResultsScreenViewController>(); } ProvideInitialViewControllers(_radioNavController, null, null); }
protected override void DidActivate(bool firstActivation, ActivationType activationType) { _beatmapCharacteristics = Resources.FindObjectsOfTypeAll <BeatmapCharacteristicSO>(); _standardCharacteristics = _beatmapCharacteristics.First(x => x.characteristicName == "Standard"); _levelCollection = SongLoader.CustomLevelCollectionSO; if (firstActivation) { _radioNavController = BeatSaberUI.CreateViewController <RoomNavigationController>(); _radioNavController.didFinishEvent += () => { LeaveChannel(); }; _inGameViewController = BeatSaberUI.CreateViewController <InGameScreenViewController>(); _inGameViewController.playPressedEvent += PlayNow_Pressed; _nextSongScreenViewController = BeatSaberUI.CreateViewController <NextSongScreenViewController>(); _nextSongScreenViewController.skipPressedEvent += SkipSong_Pressed; _resultsScreenViewController = BeatSaberUI.CreateViewController <ResultsScreenViewController>(); } ProvideInitialViewControllers(_radioNavController, null, null); }