private void ReceivedNotification(ITimeNotification notification) { if (!_settings.Enabled) { return; } if ((!_settings.NotifyInGame && _gameScenesManager.currentScenesContainer.TryResolve <IDifficultyBeatmap>() != null) || IsViewing) { _queue.Enqueue(notification); } else { NotificationPing?.Invoke(notification); } }
public void UnregisterNotification(ITimeNotification notification) { _notifications.Remove(notification); }
public void RegisterNotification(ITimeNotification notification) { _notifications.Add(notification); }