Пример #1
0
 // 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;
 }
Пример #2
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>();
 }
Пример #3
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;
 }
Пример #4
0
    //private float offset;

    // Start is called before the first frame update
    void Start()
    {
        SpeakingScript  = SpeakingLine.GetComponent <SineWaveScript>();
        ListeningScript = ListeningLine.GetComponent <SineWaveScript>();
    }