コード例 #1
0
        public void CanGetInputAfterRecording()
        {
            var recordedInput = new RecordedInput(new [] { new RecordedInput.InputData("Horizontal", 1.0f) }, 0.01f);

            _recorder.RecordInput(recordedInput);

            Check.That(_recorder.GetInputForDuration(0.01f)).ContainsExactly(recordedInput);
        }
コード例 #2
0
ファイル: NebulaClient.cs プロジェクト: brogowski/nebula
        public void UpdateRemoteInputs(float time)
        {
            var inputs = _inputRecorder.GetInputForDuration(time);

            foreach (var recordedInput in inputs)
            {
                _inputSender.Send(recordedInput);
            }
        }