Exemplo n.º 1
0
        private void StartBeatsElapsed()
        {
            if (!metro)
            {
                Debug.LogError("Event will never auto-trigger because you haven't given it a Metronome object.");
                return;
            }
            float val = RandomTriggerValue() * metro.settings.beatTime;

            myEvent.StartBeatsElapsed(this, val);
        }