Fixed stars not stopping + upped amount of stars

This commit is contained in:
Rapandrasmus 2023-06-25 02:01:07 +02:00
parent 415d458fa0
commit aab89a124f
2 changed files with 4 additions and 2 deletions

View file

@ -849,7 +849,7 @@ MonoBehaviour:
starRef: {fileID: -5335075775997835892, guid: 8df651ffe21e1dc4fb223e94fdc9f9cb, type: 3}
boundaryX: 23
boundaryY: 13
starCount: 80
starCount: 100
blinkFrequency: 0.125
blinkAmount: 5
--- !u!1 &5576704226004728173

View file

@ -26,6 +26,7 @@ namespace HeavenStudio.Games.Scripts_AgbNightWalk
[NonSerialized] public List<AgbPlatform> allPlatforms = new();
private int lastHeightUnits;
private int currentHeightUnits;
private bool stopStars;
private void Awake()
{
@ -81,7 +82,7 @@ namespace HeavenStudio.Games.Scripts_AgbNightWalk
transform.localPosition = new Vector3(0, -newPosY, 0);
starHandler.normalizedY = -func(starHeight * lastHeightUnits, starHeight * currentHeightUnits, normalizedBeat);
}
if (stopStars) return;
float normalizedValue = cond.GetPositionFromBeat(0, starLength);
starHandler.normalizedX = -normalizedValue;
@ -94,6 +95,7 @@ namespace HeavenStudio.Games.Scripts_AgbNightWalk
{
platform.Stop();
}
stopStars = true;
}
public bool PlatformsStopped()