Hi guys,
as the header says, I have created an enemy script with movement, patrolling, attacks etc. Obviously i want to create different prefabs for the enemies and use the same script.
My enemy script is for melee enemies. How would i handle enemies that have range attacks? Like an Archer. Do I have to create another script for ranged characters? The logic would be different I guess, because i have to instantiate arrows and they have to travel as well.
Another question would be, how would I handle animations for the different enemies? How would I tell the script to use a different animator controller and play those specific animations for each kind of enemy? I cant imagine that i have to create a different script for each enemy to adjust the animations that have to be played.
What is the best way to handle this?
Any feedback is very much appreciated!