public void Update() { m_time = m_AudioSource.time; spectrumData = m_AudioSource.GetSpectrumData(1024, 0, FFTWindow.Blackman); if (GetTimeInBeat() > NextWhole) { NextWhole += 1; if (OnWhole != null) { OnWhole.Invoke(); } } }
private void Trigger() { m_OnTrigger?.Invoke(); }