Ejemplo n.º 1
0
 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);
     }
 }
Ejemplo n.º 2
0
 public void UnregisterNotification(ITimeNotification notification)
 {
     _notifications.Remove(notification);
 }
Ejemplo n.º 3
0
 public void RegisterNotification(ITimeNotification notification)
 {
     _notifications.Add(notification);
 }