Fixed AudioSource.time bug, check Conductor.cs for comment.

This commit is contained in:
Starpelly
2021-12-26 23:48:39 -05:00
parent 4b3bfeda1b
commit ff6bce2806
16 changed files with 413 additions and 25 deletions

View File

@ -32,12 +32,17 @@ namespace RhythmHeavenMania.Games.Spaceball
float beatLength = 1f;
if (high) beatLength = 2f;
float normalizedBeatAnim = Conductor.instance.GetLoopPositionFromBeat(startBeat, beatLength + 0.2f);
float normalizedBeatAnim = Conductor.instance.GetLoopPositionFromBeat(startBeat, beatLength + 0.15f);
print(normalizedBeatAnim + " " + Time.frameCount);
if (high)
if (high)
{
anim.Play("BallHigh", 0, normalizedBeatAnim);
else
}
else
{
anim.Play("BallLow", 0, normalizedBeatAnim);
}
anim.speed = 0;