How can I combine multiple Func delegates?
Assume I have two delegates
Func<bool> MovementButtonHold() => () => _inputSystem.MoveButtonHold
Func<bool> IsFreeAhead() => () => _TPG.IsFreeAhead();
Is there any way to combine these two delegates to one Func<bool> delegate?
Something like:
And
Func<bool> delegate1 = MovementButtonHold() && IsFreeAhead();
Or
Func<bool> delegate2 = MovementButtonHold() || IsFreeAhead();