Fixed stars not stopping + upped amount of stars
This commit is contained in:
parent
415d458fa0
commit
aab89a124f
|
|
@ -849,7 +849,7 @@ MonoBehaviour:
|
||||||
starRef: {fileID: -5335075775997835892, guid: 8df651ffe21e1dc4fb223e94fdc9f9cb, type: 3}
|
starRef: {fileID: -5335075775997835892, guid: 8df651ffe21e1dc4fb223e94fdc9f9cb, type: 3}
|
||||||
boundaryX: 23
|
boundaryX: 23
|
||||||
boundaryY: 13
|
boundaryY: 13
|
||||||
starCount: 80
|
starCount: 100
|
||||||
blinkFrequency: 0.125
|
blinkFrequency: 0.125
|
||||||
blinkAmount: 5
|
blinkAmount: 5
|
||||||
--- !u!1 &5576704226004728173
|
--- !u!1 &5576704226004728173
|
||||||
|
|
|
||||||
|
|
@ -26,6 +26,7 @@ namespace HeavenStudio.Games.Scripts_AgbNightWalk
|
||||||
[NonSerialized] public List<AgbPlatform> allPlatforms = new();
|
[NonSerialized] public List<AgbPlatform> allPlatforms = new();
|
||||||
private int lastHeightUnits;
|
private int lastHeightUnits;
|
||||||
private int currentHeightUnits;
|
private int currentHeightUnits;
|
||||||
|
private bool stopStars;
|
||||||
|
|
||||||
private void Awake()
|
private void Awake()
|
||||||
{
|
{
|
||||||
|
|
@ -81,7 +82,7 @@ namespace HeavenStudio.Games.Scripts_AgbNightWalk
|
||||||
transform.localPosition = new Vector3(0, -newPosY, 0);
|
transform.localPosition = new Vector3(0, -newPosY, 0);
|
||||||
starHandler.normalizedY = -func(starHeight * lastHeightUnits, starHeight * currentHeightUnits, normalizedBeat);
|
starHandler.normalizedY = -func(starHeight * lastHeightUnits, starHeight * currentHeightUnits, normalizedBeat);
|
||||||
}
|
}
|
||||||
|
if (stopStars) return;
|
||||||
float normalizedValue = cond.GetPositionFromBeat(0, starLength);
|
float normalizedValue = cond.GetPositionFromBeat(0, starLength);
|
||||||
|
|
||||||
starHandler.normalizedX = -normalizedValue;
|
starHandler.normalizedX = -normalizedValue;
|
||||||
|
|
@ -94,6 +95,7 @@ namespace HeavenStudio.Games.Scripts_AgbNightWalk
|
||||||
{
|
{
|
||||||
platform.Stop();
|
platform.Stop();
|
||||||
}
|
}
|
||||||
|
stopStars = true;
|
||||||
}
|
}
|
||||||
|
|
||||||
public bool PlatformsStopped()
|
public bool PlatformsStopped()
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue