// Start is called before the first frame update void Start() { lineController = Listener.GetComponent <LineController>(); listenerSineScript = Listener.GetComponent <SineWaveScript>(); startTime = Time.time; Speaker.GetComponent <Renderer>().enabled = false; Listener.GetComponent <Renderer>().enabled = false; }
// 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; }
//private float offset; // Start is called before the first frame update void Start() { SpeakingScript = SpeakingLine.GetComponent <SineWaveScript>(); ListeningScript = ListeningLine.GetComponent <SineWaveScript>(); }