Пример #1
0
    void Update()
    {
        float l = micIn.loudness;

        if (l > threshold)
        {
            _pc.StartCoroutine(_pc.Emit());
            //Vector3 scale = new Vector3(l, l, l);
            //GameObject newObject = (GameObject)Instantiate(objectToSpawn, this.transform.position, Quaternion.identity);
            // newObject.transform.localScale += scale;
        }
    }