private void Update() { if (_wingsuitActionMap == null) { Debug.LogWarning("No actionmap found"); return; } var wingsuitInput = PollWingsuitInput(_wingsuitActionMap.ActionMap); var prevMouseInput = _mouseWingsuitInput; _mouseWingsuitInput = PollWingsuitMouseInput(_wingsuitActionMap.ActionMap); var mouseWingsuitInput = ApplyWingsuitMouseState(_gameClock.DeltaTime, _mouseGravity, _mouseCancelPower, _mouseBufferStrength, prevMouseInput, _mouseWingsuitInput); _wingsuitInput = wingsuitInput.Merge(mouseWingsuitInput); _cameraInput = PollCameraInput(_wingsuitActionMap.ActionMap); if (_parachuteActionMap == null) { Debug.LogWarning("No parachute actionmap assigned"); return; } _parachuteInput = _parachuteActionMap.V.Input; }
public void SetInput(CharacterInput wingsuitInput, ParachuteInput parachuteInput, CameraInput cameraInput) { _wingsuitInput = wingsuitInput; _parachuteInput = parachuteInput; _cameraInput = cameraInput; }