So I’ve looked around quite a bit for this and haven’t had much luck. I’m pretty new and guess that this is a pretty simple problem but I can’t seem to find the answer anywhere. I’m trying to transfer a game’s input system from the old one to the new system so I can add gamepad support. I’m trying to use a Brackey’s tutorial.
Before I was using a simple Boolean method for input
jumping = Input.GetKeyDown(KeyCode.Space);
But when I try replacing that with
jumping = controls.Player.Jump
(I’ve checked and all of those words are correct)
I get this error:
error CS0029: Cannot implicitly convert type ‘UnityEngine.InputSystem.InputAction’ to ‘bool’
So is there a way to get a boolean from new input, or should I go about this another way entirely? Thank you for any answers.