diff --git a/Assets/_Content/Scripts/Dev/Audio/PersistentWwiseFadeInPlayer.cs b/Assets/_Content/Scripts/Dev/Audio/PersistentWwiseFadeInPlayer.cs index 3803ab63..1520e2e0 100644 --- a/Assets/_Content/Scripts/Dev/Audio/PersistentWwiseFadeInPlayer.cs +++ b/Assets/_Content/Scripts/Dev/Audio/PersistentWwiseFadeInPlayer.cs @@ -115,13 +115,10 @@ public sealed class PersistentWwiseFadeInPlayer : MonoBehaviour OctoSceneFade fade = root.GetComponentInChildren(true); - if (fade != null) - return fade; + if (fade != null) return fade; } } - // Essential when OctoSceneFade is itself persistent - // or not contained in the newly loaded scene. return OctoSceneFade.Instance; } @@ -146,16 +143,7 @@ public sealed class PersistentWwiseFadeInPlayer : MonoBehaviour private void OnFadeIn() { - if (_fadeInEvent == null) - { - Debug.LogWarning( - $"[{nameof(PersistentWwiseFadeInPlayer)}] " + - "No Wwise Event assigned.", - this - ); - - return; - } + if (_fadeInEvent == null) return; _fadeInEvent.Post(gameObject); }