I've started implementing some custom game settings for my game, eg. dynamic weather shifting, displaying particle emitters on quest items and blood effects when killing creatures. Most of my own settings are set when the games levels load so there's no problem there but in some cases, as the blood-effects for example, I have to check every time a ragdoll is instantiated since that's the gameobject I've set to activate such particles.
From a performance perspective, what would be best method to use, using delegates and a switch-case or having the ragdoll-script load the setting for blood, read if it's on or off and perform action depending on that.
As said many times before, I'm new to coding so if you know some other or perhaps a more efficient method I'ld appreciate it alot if you'd share an API or a tutorial or something along those lines on how to use it so I could learn. :)
(Edit: by the way, the settings are loaded from playerprefs and stored into a gameobject with my script attached to it on Start(), so all settings are loaded at start but still a few objects in the game will need to check what those settings are after Start(), as mentioned before the ragdolls for example. <- thought I'ld add this since perhaps it's a better explanation.)