Checking for conditions on hundreds of ScriptableObjects
Hi there, got a question that's sort of complicated (I think). I have about 500 scriptable objects, each one with a different sound. I want them to be played when a specific condition (or multiple conditions) happen in my game. How should I go about doing this? Should I have events or conditions in the scriptable object itself? Should I have a reference to my GameManager manager in each of the scriptable objects and check every frame if that specific condition is met? Or the other way around, and have a reference to every scriptable object in my GameManager and check for every condition? Should I have events instead? If so, how should I go about it?
I appreciate any help on how to solve this issue, thanks!
Your answer
Follow this Question
Related Questions
Way to assign event fields in created at runtime scriptable object (ScriptableObject Architecture) 0 Answers
How do I make a Status Effect system in a turn based combat RPG ? 0 Answers
How to find and call a function on a scene object from UnityEvent that has a prefab referenced. 1 Answer
How do I decide which Conversation to start when clicking on an NPC? 0 Answers
ScriptableObject not Serializing? 0 Answers