Exemplo n.º 1
0
        IEnumerator CoWaitForBeats(ITimeable timeable, int count)
        {
            int beats    = timing.beatCount;
            int endBeats = beats + count;

            while (beats < endBeats)
            {
                beats = timing.beatCount;
                yield return(null);
            }

            timeable.OnBeatsElapsed();
        }