Exemplo n.º 1
0
    StateAndInput ConstructStateAndInput(State state)
    {
        var stateAndInput = new StateAndInput
        {
            state         = state,
            movementInput = _input.GetAxes(AxisType.Movement),
            lookInput     = _input.GetAxes(AxisType.Look),
            jumpInput     = _input.WasKeyJustPressed(PlayerAction.Jump),
            shootInput    = _input.WasKeyJustPressed(PlayerAction.Shoot)
        };

        return(stateAndInput);
    }