>>285232535
In short: A lot of Blender and Unity work.
For specifics: The mouth motions are called visemes which you can attach to specific sounds like "AA" or "OU".
The flopping ears are more than likely done using the add-on dynamic bones which allows you to give bones the ability to move based on physics instead of just pre-baked animations.