This question was
closed Nov 25, 2015 at 05:09 PM by
Crixu for the following reason:
The question is answered, right answer was accepted
Question by
Crixu · Nov 25, 2015 at 03:12 PM ·
unity 5inputinputmanager
Input.GetButton not working
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.
Comment
Best Answer
Answer by Crixu · Nov 25, 2015 at 05:09 PM
Nevermind, I removed some parts of the script and the canMove(dir) booleans have no more functionality... I feel like an idiot...