protected override void OnDestroy() { Controller = null !; SyncController = null !; Config = null !; BarComponents = null !; }
[Inject] internal void ModifierInit([InjectOptional] StandardGameplaySceneSetupData sgssd, SongProgressUIController spuic, AudioTimeSyncController atsc, Config.Progress c) { Logger.Logger.Debug("SongProgressPanelModifier:ModifierInit()"); Controller = spuic; SyncController = atsc; Config = c; BarComponents = new(); transform.SetParent(spuic.transform); if (sgssd?.beatmapCharacteristic.containsRotationEvents == true) { Logger.Logger.Debug("Selected map is 360/90. Disabling the SongProgressPanelModifier"); canBeUsed = false; return; } ModPanel(); }