Today in Ant’s lesson we were told to begin to learn the animator in Unity whilst also coding a trigger for it, to do this we used the aid of a few tutorials that Ant had given us to make door open when a switch is clicked, however, I decided to expand upon these to get what you see above.
To begin with I parented the club to the character controller in the starting position. Then I made these animations and intimation controller.
I then set the key frames for the ClubDown, ClubUp and a single key frame for ClubIdle which it will stay on when the animation is not activated.
This is how I set up the animator and then set it up with some code that activates the animation using the toggle tag when the mouse is clicked.