Example #1
0
        private void OnBeat(BeatInfo beatInfo, float timePerBeat)
        {
            if (_waitForBeatsCount-- > 0)
            {
                return;
            }

            EvtNextBeatKeyAdded[] keys = _currentGenerator
                                         .GenerateTargetsForBeat(beatInfo, timePerBeat, _keyInfoComponent.Value);

            foreach (var beatKeyAdded in keys)
            {
                MessageBroker.Default.Publish(beatKeyAdded);
            }
        }