// Start is called before the first frame update void Start() { speakingSine = speaking.GetComponent <SineWaveScript>(); speakingSquare = speaking.GetComponent <SquareWaveScript>(); speakingTriangle = speaking.GetComponent <TriangleWaveScript>(); listeningSine = listening.GetComponent <SineWaveScript>(); listeningSquare = listening.GetComponent <SquareWaveScript>(); listeningTriangle = listening.GetComponent <TriangleWaveScript>(); }
// Start is called before the first frame update void Start() { sineWave = GetComponent <SineWaveScript>(); triangleWave = GetComponent <TriangleWaveScript>(); squareWave = GetComponent <SquareWaveScript>(); waveType = WaveType.sine; frequency = sineWave.frequency; amplitude = sineWave.amplitude; }