I am very confused with animation parameters is it as easy as making a boolean then saying
animator.SetBool("Jump", true );
and it automatically plays the jump animation or is there more to know?
From your code, what you’re trying to achieve would go more like:
If the WrapMode of the jump animation is set to Once, then it will only play once when you press the fire button. So you don’t need the else condition. You can add a condition before it plays to wait until an animation has finished playing before starting another, but if just starting out I would learn the basics first.
Animation Reference: Unity - Scripting API: Animation
Example Projects: http://unity3d.com/gallery/demos/demo-projects (the 3D Platformer tutorial is a good one to start learning about animations)
Hope that helps.
The code you wrote above changes the value of the boolean animation parameter “Jump” to true/false. In order for you animation state machine to transition from it’s current animation state (idle or walk or whatever) to the jump state, you need to have a transition from that state to the jump state where the condition is “Jump” equals “true”.