Beispiel #1
0
 public void CheckButtonSelected(Button button)
 {
     if (queueButtons.Any() && button == queueButtons.Peek())
     {
         queueButtons.Dequeue();
         button.Activate();
         SequenceChanged?.Invoke(queueButtons.Count);
     }
     else
     {
         Debug.Log("Game was stopped by losing");
         QueueReady?.Invoke(false);
         LoseLevel?.Invoke();
     }
 }
 void TagAggregator_TagsChanged(object sender, TagsChangedEventArgs e) =>
 SequenceChanged?.Invoke(this, new TextAndAdornmentSequenceChangedEventArgs(e.Span));
Beispiel #3
0
 protected void RaiseSequenceChanged()
 {
     SequenceChanged?.Invoke(this);
 }
 void HexTagAggregator_TagsChanged(object?sender, HexTagsChangedEventArgs e) =>
 SequenceChanged?.Invoke(this, new HexAndAdornmentSequenceChangedEventArgs(e.Span));
 internal void NotifySequenceChanged(RealtimeQueueNode NewReference, RealtimeQueueNode ExcludedNode = null)
 {
     lock (rootList.sync)
         SequenceChanged?.Invoke(this, new SequenceChangedEventArgs(NewReference, ExcludedNode));
 }