System Module Like "PlayerModule" or Individual Modules?

I have a question. For a game, would it be better (and more organized) to make a System module similar to the “PlayerModule” script that is default in PlayerScripts that handles a variety of tasks

Or

Would it be better to have individual modules like for example “Inventory”, “Movement”, etc?

Funnily enough PlayerModule is made up of individual modules.

So go for individual modules, this is known as composition in object-oriented programming.

image

1 Like

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.