Hi all,
I am coding a game about animal feeding.I need to play the walking animations for every NPC when my game begins.
When a player do something to one NPC, like feed it. This NPC should stop the walking animation and play a eating animation.How can I realize this? Should I use spawn() methed or Coroutines?and How?
Use an Animation for Walking, and set it to Looped. This will mean it keeps going.
Then set the priority of the animation to something like “Core” (anything below Action)
If you then make an animation which overlays that, such as eating, and set that as a higher priority animation, it’ll play over the other animation, then when it is finished the other animation will resume.