Example #1
0
 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();
         }
     }
 }
Example #2
0
 private void Trigger()
 {
     m_OnTrigger?.Invoke();
 }