diff options
Diffstat (limited to 'Thronefall_v1.0/Decompile/SettingsPostProcessingHelper.cs')
-rw-r--r-- | Thronefall_v1.0/Decompile/SettingsPostProcessingHelper.cs | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/Thronefall_v1.0/Decompile/SettingsPostProcessingHelper.cs b/Thronefall_v1.0/Decompile/SettingsPostProcessingHelper.cs new file mode 100644 index 0000000..a255c32 --- /dev/null +++ b/Thronefall_v1.0/Decompile/SettingsPostProcessingHelper.cs @@ -0,0 +1,18 @@ +using UnityEngine; +using UnityEngine.Rendering; + +public class SettingsPostProcessingHelper : MonoBehaviour +{ + public Volume target; + + private void Start() + { + Refresh(); + SettingsManager.Instance.onPPSettingsChange.AddListener(Refresh); + } + + private void Refresh() + { + target.enabled = SettingsManager.Instance.PostProcessing; + } +} |