示例#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
        public void UpdateRemoteInputs(float time)
        {
            var inputs = _inputRecorder.GetInputForDuration(time);

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