Let’s say you have about 100 skills the player may use, Fire Ball, Healing, Melee attacks, etc.
Each one of them implements a monobehaviour so it can instantiate objects.
Would you load all the components(each skill) to the player’s object?
I’d like to hear what would you do from your experience.
Instantiate() is a static method. It can be called from anywhere. A type doesn’t have to be a monobehaviour to use it.
To that end your skills could also be scriptable objects, or even plain C# classes.
2 Likes