Exemplo n.º 1
0
        public async UniTask OnStateBegan(CancellationToken token)
        {
            using var cts = new CancellationTokenSource();
            var linkedTokenSource = CancellationTokenSource.CreateLinkedTokenSource(token, cts.Token);

            _gameModel.userAnswer = await _answerRequestHandler.InvokeAsync(GameStateEnum.UserInput, linkedTokenSource.Token);
        }