Script only to store and execute Events

Is it viable to create a single Script to hold ALL the events of my project instead of creating some events in any other scripts?

Hi,

In which course and lecture are you?

Generally, there is no universal answer to your question. If your game is very complex and has many events of different aspects of your game, it might make sense to organise the code in multiple scripts.

In the end, you should aim for a maintainable project structure.


See also:

Hi. I finished Unity Multi-player course and there’s a lot of Actions in multiple scripts. I’m a beginner, so I don’t know anything about performance and optimization. Thank you for the answer.

Write your code as you wish. You’ll automatically learn the advantages and disadvantages of your approaches by working with your own code. :slight_smile:

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

Privacy & Terms