Esempio n. 1
0
 // Start is called before the first frame update
 void Start()
 {
     playing    = false;
     last_input = false;
     clip_idx   = 0;
     emitter.Stop();
     next_track = new RisingEdge(false);
     prev_track = new RisingEdge(false);
 }
Esempio n. 2
0
        private void TimerElapsed(object?sender, ElapsedEventArgs?e)
        {
            rising = !rising;

            if (rising)
            {
                RisingEdge?.Invoke(this, new EventArgs());
            }
            else
            {
                FallingEdge?.Invoke(this, new EventArgs());
            }
        }