Exemple #1
0
        private async UniTask PrintTextAsync(string text, ITextPrinterActor printer, CancellationToken cancellationToken)
        {
            await PrinterManager.PrintTextAsync(printer.Id, text, AssignedAuthorId, AssignedRevealSpeed, cancellationToken);

            if (cancellationToken.CancelASAP)
            {
                return;
            }
            printer.RevealProgress = 1f; // Make sure all the text is always revealed.
        }