protected IEnumerator ErrorLoad(string errorMessage) { ProgressText progressText = GameManager.Instance.ProgressManager.AddMessage(errorMessage); progressText.Text = errorMessage; progressText.Type = ProgressTextEnum.Error; isInProgress = false; loadingListener?.Error(0, errorMessage); return(asyncLoad?.ErrorLoad(asset, errorMessage)); }
public IEnumerator ErrorLoad(T data, string message) { yield return(ErrorLoad(message)); yield return(asyncLoad?.ErrorLoad(data, message)); }