private void Initialize()
 {
     commandExecutor.Initialize(commandsToExecute);
     commandExecutor.OnCommandStartedExecution += (c) => OnCommandStartedExecution?.Invoke(c);
     commandExecutor.OnCommandCompleted        += (c) => OnCommandCompleted?.Invoke(c);
     commandExecutor.OnCommandFailed           += (c, e) => OnCommandFailed?.Invoke(c, e);
     commandExecutor.OnCommandProgressChanged  += (c, p) => OnCommandProgressChanged?.Invoke(c, p);
     commandExecutor.OnAllCompleted            += (wasErrors) => OnLoadingCompleted?.Invoke();
 }
Пример #2
0
 private void OnCommandProgressChangedHandler(float progress)
 {
     OnCommandProgressChanged?.Invoke(Current, progress);
 }