Hi, I’m building a space shooter similar to Galaga and Space Invaders but I’m having trouble setting up the animations for my enemies.
What I want to achieve is spawning a group of enemies of different types and all of them using the same animation, and the same group can be cloned but it can use a different animation set
Now lots of ideas came into my mind but I don’t know what’s best and mostly important which one is more scalable
My solutions:
First
Creating a bunch of animation clips and providing each enemy with a Legacy Animation, then from my SpawnManager set the required animation or a random one to all the enemy spawned in group
Second
Creating a single controller and a bunch of animations, each enemy is equipped with the controller and the spawn manager simply sets the current state to the Animator which plays the right animation
Third
Doing every animation as a script and then adding one of the scripts to the enemy object
Is there any other solution? Should I use one of the above?