Example #1
0
 private void OnProgressUpdate(int newCurrent)
 {
     if (newCurrent >= states.Count)
     {
         if (!TryGenerateNextState())
         {
             return;
         }
     }
     if (newCurrent < 0 || newCurrent >= states.Count)
     {
         return;
     }
     current            = newCurrent;
     gameProgress.Value = current;
     CurrentStateUpdated?.Invoke(states[current]);
 }
Example #2
0
 protected virtual void OnCurrentStateUpdated(List <IFileSystemGallery> param)
 {
     CurrentStateUpdated?.Invoke(this, new CurrentStateEventArgs {
         FileSystemGalleries = param
     });
 }