// 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); }
private void TimerElapsed(object?sender, ElapsedEventArgs?e) { rising = !rising; if (rising) { RisingEdge?.Invoke(this, new EventArgs()); } else { FallingEdge?.Invoke(this, new EventArgs()); } }