I have the following code:
if (Input.GetButton("Previous") && canMoveLeft && canMove) {
StartCoroutine(MoveLeft());
}
if (Input.GetButton("Next") && canMoveRight && canMove) {
StartCoroutine(MoveRight());
}
With in the Input Manager: Screenshot
What did I do wrong? Neither A/D and the controller buttons work.
Edit: should’ve stated at the start, but using Input.GetKeyDown does work.