private void Awake() { if (scriptableObject is IShield shield) { _shield = shield; } _shield.SetVariables(GetComponent <Health>(), shieldObj); _audioSource = gameObject.AddComponent <AudioSource>(); _audioSource.outputAudioMixerGroup = mixerGroup; _audioSource.volume = audioVolume; }