Hello, I just tore through this whole course in about a week and enjoyed every moment of it. I feel ilke I learned a lot, but right now have two questions about general workflow and how you approach problem solving.
Structs. I understand how they work, but I’m not entirely clear on when you want to use them. When you’re looking at a problem, what’s the thought process that leads you to think that a struct is the proper approach to solving it? Or in what kind of situations are structs the most useful solution?
Events. I get how these work too, but am wondering when it’s more beneficial to use events over public functions. For example, when you know something is likely going to touch multiple scripts (OnEnemyDeath, OnTurnEnded, etc…), that seems like a good reason to have an event. But then take hte ScreenShakeActions, for example. That one seemed a little bit excessive in that now every Action will need to evoke a its own event which more or less does the same thing on ScreenShakeActions. Would this just be better served with a public function? Similar to above, what’s the thought process that goes into deciding to use events vs. public functions.
Thanks! Again I really enjoyed the course and feel like I learned a lot. I’m making some gameplay modifications here and there before I work on and show a final level.