fix hearing TH audio when dead? maybe?

This commit is contained in:
_nebula 2024-01-29 23:07:03 +00:00
parent 3661551e5f
commit d0a47580ee
2 changed files with 8 additions and 2 deletions

View File

@ -82,8 +82,8 @@ public class RespawnOnDeath : MonoBehaviour
ResetCanvases();
var mixer = Locator.GetAudioMixer();
mixer._deathMixed = false;
mixer._nonEndTimesVolume.FadeTo(1, 0.5f);
//mixer._deathMixed = false;
//mixer._nonEndTimesVolume.FadeTo(1, 0.5f);
mixer._endTimesVolume.FadeTo(1, 0.5f);
mixer.MixMap();

View File

@ -139,6 +139,12 @@ public class RespawnManager : MonoBehaviour, IAddComponentOnStart
cameraEffectController.OpenEyes(1f);
OWInput.ChangeInputMode(InputMode.Character);
var mixer = Locator.GetAudioMixer();
mixer._deathMixed = false;
mixer._nonEndTimesVolume.FadeTo(1, 0.5f);
mixer._endTimesVolume.FadeTo(1, 0.5f);
mixer.UnmixMap();
}
public void OnPlayerDeath(PlayerInfo player)