Game crashes when testing jump code?

Here is the error message and the code is used i just don’t understand why it make my game crash. The error says there isnt any animation in “JumpingAnims” but there is and i don’t know why it can’t access it.

18480-screenshot_40.png

Thank you.

There’s a chance the character that has the script calling for the animation does not have an animation component, to add one select the character, on the Inspector go to Add Component > Animation, then you’ll see a new component which allows you to add animations.

All that said, this kind of thing should simply give you an error, not crash the whole game so maybe it’s something related to the jump code, if my suggestion doesnt work please post the code that you are using to trigger the jumping animation.