private async UniTaskVoid Move(CancellationToken token) { while (!token.IsCancellationRequested) { float x = await inputProvider.GetXAxisAsync(token); await UniTask.Yield(PlayerLoopTiming.FixedUpdate); transform.position = new Vector3(x, 0, 0); } }
private async UniTaskVoid Move(CancellationToken token) { while (!token.IsCancellationRequested) { float x = await inputProvider.GetXAxisAsync(token); await UniTask.Yield(PlayerLoopTiming.FixedUpdate); transform.position = new Vector3(x, 0, 0); } }