public void JudgeTrack(int trackNumber) { var note = judgers[trackNumber].GetNoteOnBeat(BeatTime.beat, judgeToleranceBeat); if (note != null) { sequencer.PlayNow(trackNumber, note.beginBeat, note.audioEndBeat); } }
public void OnTriggerEnter(Collider other) { if (InputManager.IsUserInput(other) && judger != null) { isHolding = true; startHoldTime = Time.time; var note = judger.HitNoteOnBeat(BeatTime.beat); if (note != null) { sequencer.PlayNow(laser.trackIndex, note.beginBeat, note.audioEndBeat); if (visualizer != null) { visualizer.PlayHitEffect(note.endBeat); } if (rumble != null) { rumble.StartRumble(other); } } } }