Mr. Upbeat now starts on the go no matter what

This commit is contained in:
Carson Kompon
2022-03-11 20:54:05 -05:00
parent 5cb45ac82e
commit 8ebcf18501
2 changed files with 16 additions and 2 deletions

View File

@ -12,6 +12,7 @@ namespace RhythmHeavenMania.Games.MrUpbeat
{
public float startBeat;
private bool passedFirst = false;
public float beatOffset = 0;
private void Start()
{
@ -27,7 +28,7 @@ namespace RhythmHeavenMania.Games.MrUpbeat
{
if (Conductor.instance.GetPositionFromBeat(startBeat, 0.35f) >= 1 && !passedFirst)
{
if(MrUpbeat.instance.man.stepTimes % 2 != startBeat % 2)
if(MrUpbeat.instance.man.stepTimes % 2 != Math.Round(startBeat - beatOffset) % 2)
Hit(false);
passedFirst = true;
}