Hello everyone! I am struggling with a piece of my sprinting script. I have added in a block of code that says when you press left shift it plays the running animation and when you let go, it stops it!
When I saved it I got an error saying: BCE0044: unexpected char: 0x0.
Here is the code:
If anyone could help I would be very grateful :)
You somehow managed to copy a null-byte-character into your source code. Try open the file in another editor and resave the file. That might help. Other than that i would use a hexeditor and search for the null byte. You usually can't see the null character, so it's hard to delete it inside MonoDevelop.
btw: Shouldn't Unity give you at least a line number and a column where the error occured?