// Constructor. public Oscillator(float magnitude, float speed, WaveformFunction waveform, float startingHalfTurns = 0.0f) { this.magnitude = magnitude; this.speed = speed; this.waveform = waveform; progress = startingHalfTurns * Mathf.PI; }
// Constructor. public Oscillator(float magnitude, float speed, WaveformFunction waveform) { this.magnitude = magnitude; this.speed = speed; this.waveform = waveform; }