예제 #1
0
 // 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>();
 }
예제 #2
0
 // 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;
 }