Answer the question
In order to leave comments, you need to log in
Do you need classes in a unit?
Well, let's say we have a character, and there is a script for him, he has health, damage, etc. it's better for me to create several classes in one script and attach to the Persian, or better scripts with hp, damage, etc. attach not only to the Persian, but also to the enemies, or am I a fool, and should I do it differently?
Answer the question
In order to leave comments, you need to log in
If I understand the question correctly, then it is better, as I think, to create separate scripts for enemies and a hero, each of which will indicate health, damage, etc.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question