Proper way to implement animations
Hi!
Probably this topic has been discused early, but I didn´t find a post about it. So basically, I have already done all the logic for my player and now I want to add animations to it. I even have a character animated by bones ready to use.
My question is: wich is the best way to implement this animations through code? Should I create an "Animation Manager" and pass to it all the player's boolean states? (e.g: isJumping, isRunning, ...) Or should I call the Animator on every script that makes an action? (e.g: the script for jumping, script for crouch) Maybe create events in each of these scripts and subscribe the "Animation Manger" to them?
I tried doing the second option, but it was a mess since most of animations overlap and I need to add conditions here and there. So I guess if there is a proper way of doing that. Maybe a design pattern or some tip I'm avoiding.
Thanks in advance, I'll keep working
Your answer
Follow this Question
Related Questions
Can't seem to move my character. 0 Answers
Why can't I transition my animations at all? 0 Answers
How to call Animator from another script 0 Answers
Variety of animation and meshes. 0 Answers
How do I add animation to my script? 1 Answer