Bagaimana cara instantiasi lebih banyak musuh dalam persatuan

void Update()
    {
        if (name1 == 0)
        {
            name2 ++;
            int i = name2;

            while (i > 0)
            {
                x = Random.Range(-8.03f, 8.07f);
                y = Random.Range(4.21f, 1.66f);

                Instantiate(name1, new Vector2(x, y), name1.transform.rotation);

                i--;

            }
            enemynumbers = lvl;


        }
        

    }
Inquisitive Iguana