mirror of
https://github.com/Outer-Wilds-New-Horizons/new-horizons.git
synced 2025-12-11 20:15:44 +01:00
Fix supernovas being quiet #522
This commit is contained in:
parent
53f7bc0b67
commit
be23f852fd
@ -84,6 +84,7 @@ namespace NewHorizons.Components.Stars
|
|||||||
{
|
{
|
||||||
float dt = Mathf.InverseLerp(12000f, 0.0f, distanceToPlayer);
|
float dt = Mathf.InverseLerp(12000f, 0.0f, distanceToPlayer);
|
||||||
audioSource.SetLocalVolume(Mathf.Lerp(0.0f, 1f, dt * dt) * Mathf.InverseLerp(0.0f, 5f, _time));
|
audioSource.SetLocalVolume(Mathf.Lerp(0.0f, 1f, dt * dt) * Mathf.InverseLerp(0.0f, 5f, _time));
|
||||||
|
audioSource.maxDistance = shockwaveScale.Evaluate(shockwaveTime);
|
||||||
}
|
}
|
||||||
|
|
||||||
RumbleManager.UpdateSupernova(distanceToPlayer);
|
RumbleManager.UpdateSupernova(distanceToPlayer);
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user