Hi, looked around on the internet on different classes tutorials and examples.
I know that javascript by default creates a class that is derived from MonoBehaviour and has the same name as the script.
And also that making more than one class per script is not that good.
I’m making a arena game and so far i have one script with ALOT of variables for all the enemies and was thinking of making a class to shorten the inspector down a bit and making it easier to create new types of enemies.
But since i got everything on one script my question is if i should split up the script into a couple of smaller scripts. Like one for movement, one for attacking and maybe one for taking damage. Then it would make it better to create classes and easier to create new types of enemies.(And shorten down the awfully long script)
And if i do this what is the best way to communicate between these scripts?
Is this what i should be trying to do or should i try to this in another way, if so what?
Thanks for your time.
//Randomly