public override void OnBeat(int beat) { if (BeatIndex.IsBeat(beatTypeDisable)) { DisableAllWiser(); } if (BeatIndex.IsBeat(beatTypeEnable)) { DisableWiser(moveIndex); moveIndex++; SetWiser(moveIndex); } }
public void Beat(int index) { var active = false; if (useBeatType) { active = BeatIndex.IsBeat(beatType, offset); } else { if (platformBeat.Length == 0) { return; } active = (platformBeat[((index + offset) / beatMultiplier) % platformBeat.Length]); } spriteRenderer.enabled = active; tag = active ? platformTag : voidTag; }