Brackeys / 2D-Character-Controller

Free 2D Character Controller for Unity.
https://youtu.be/dwcT-Dch0bA
1.16k stars 1.62k forks source link

Fix typo that may cause crouch to always be true #7

Open NRJulian opened 5 years ago

NRJulian commented 5 years ago

A typo in the if statement in line 67 may cause the crouch bool to always check true. This revision simply changes the (!crouch) in line 67 to the intended (crouch) so that the script works as expected. Thank you!