mirror of
https://github.com/RHeavenStudio/HeavenStudio.git
synced 2025-06-12 10:37:37 +02:00
Fixed Working Dough Swing (#948)
Working Dough was overlooked when swing was being added, this should fix it
This commit is contained in:
@ -15,7 +15,7 @@ namespace HeavenStudio.Games.Scripts_WorkingDough
|
||||
|
||||
public void Init(double beat, bool hasGandw)
|
||||
{
|
||||
startBeat = beat;
|
||||
startBeat = Conductor.instance.GetUnSwungBeat(beat);
|
||||
path = WorkingDough.instance.GetPath("NPCBall");
|
||||
if (gandw != null) gandw.SetActive(hasGandw);
|
||||
Update();
|
||||
@ -27,7 +27,7 @@ namespace HeavenStudio.Games.Scripts_WorkingDough
|
||||
|
||||
if (cond.isPlaying && !cond.isPaused)
|
||||
{
|
||||
double beat = cond.songPositionInBeats;
|
||||
double beat = cond.unswungSongPositionInBeats;
|
||||
if (startBeat > double.MinValue)
|
||||
{
|
||||
Vector3 pos = GetPathPositionFromBeat(path, Math.Max(beat, startBeat), startBeat);
|
||||
|
Reference in New Issue
Block a user