In this recipe, we'll learn to animate the hat of the Unity bean-man character in response to a jump event.
For this recipe, we have prepared the files you need in folder
To animate body parts for character movement events, follow these steps:
BeanManAssets, by choosing menu: Assets | Import Package | Custom Package …, and then click the Import button to import all these assets into your Project panel.
-30. Set 2D gravity to this ...