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); }
public void UpdateRemoteInputs(float time) { var inputs = _inputRecorder.GetInputForDuration(time); foreach (var recordedInput in inputs) { _inputSender.Send(recordedInput); } }