Merge pull request #51 from jakobwcrowe/master

Spaceball: Proper cap for end value of camera zoom
This commit is contained in:
Jenny Crowe 2022-02-20 05:00:04 -07:00 committed by GitHub
commit ed738d8b0e
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -85,9 +85,9 @@ namespace RhythmHeavenMania.Games.Spaceball
if (normalizedBeat >= 0) if (normalizedBeat >= 0)
{ {
if (normalizedBeat > Minigame.EndTime()) if (normalizedBeat > 1)
{ {
// lastCamDistance = GameCamera.instance.camera.transform.localPosition.z; GameCamera.instance.camera.transform.localPosition = new Vector3(0, 0, currentZoomCamDistance);
} }
else else
{ {