Example #1
0
    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));
    }
Example #2
0
    public IEnumerator ErrorLoad(T data, string message)
    {
        yield return(ErrorLoad(message));

        yield return(asyncLoad?.ErrorLoad(data, message));
    }