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]); }
protected virtual void OnCurrentStateUpdated(List <IFileSystemGallery> param) { CurrentStateUpdated?.Invoke(this, new CurrentStateEventArgs { FileSystemGalleries = param }); }