mirror of
https://github.com/RHeavenStudio/HeavenStudio.git
synced 2025-06-12 14:27:37 +02:00
Bop Refactor + Tweaks/Fixes (#582)
* blue bear tweaks * OnBeatPulse callback added * Fixing humming bug in BM + Metronome fix + Some games conversion to onbeatpulse * clappy trio to drumming practice * rest of the games converted * two minor changes
This commit is contained in:
@ -230,16 +230,17 @@ namespace HeavenStudio.Games
|
||||
}
|
||||
}
|
||||
|
||||
public override void OnBeatPulse(double beat)
|
||||
{
|
||||
if (goBopFlip) SingleBop((int)WhoBops.Flippers);
|
||||
if (goBopTuck) SingleBop((int)WhoBops.CaptainTuck);
|
||||
}
|
||||
|
||||
private void Update()
|
||||
{
|
||||
var cond = Conductor.instance;
|
||||
if (cond.isPlaying && !cond.isPaused)
|
||||
{
|
||||
if (cond.ReportBeat(ref bop.lastReportedBeat, bop.startBeat % 1))
|
||||
{
|
||||
if (goBopFlip) SingleBop((int)WhoBops.Flippers);
|
||||
if (goBopTuck) SingleBop((int)WhoBops.CaptainTuck);
|
||||
}
|
||||
if (isWalking)
|
||||
{
|
||||
float normalizedBeat = cond.GetPositionFromBeat(walkStartBeat, walkLength);
|
||||
|
Reference in New Issue
Block a user