How to multiply a ball

I have a ball and I would like that when I touch the screen a lot, it will multiply the ball according to the touch count
thank you

Whenever amountFillBalls is equal to 2, the ball becomes small and I would like the balls to be aligned with each other

 if (Input.touchCount >= 1)
        {
            playersBall.Insert(Input.touchCount, playerBall);
        }
        if (amountFillBalls >= 2)
        {
            GameObject[] ballsPlayer = GameObject.FindGameObjectsWithTag("Player");
            for (int i = 0; i < ballsPlayer.Length; i++)
            {
                ballsPlayer[i].transform.localScale = new Vector3(0.35f * amountFillBalls, 0.35f * amountFillBalls, 1);
                initialLocalPosition[i] = ballsPlayer[i].transform.localPosition;
                if (ballsPlayer.Length >= 2)
                {
                    ballsPlayer[i].transform.position = new Vector3(initialLocalPosition[i].x + 0.5f, initialLocalPosition[i].y, 1);
                }
            }
        }

Someone to Help me please?

What do you mean by “multiply a ball.” Do you mean scale it up? Do you mean make more copies? Something else?

Try using this simple format to ask your question:

How to report your problem productively in the Unity3D forums:

http://plbm.com/?p=220

This is the bare minimum of information to report:

  • what you want
  • what you tried
  • what you expected to happen
  • what actually happened, log output, variable values, and especially any errors you see
  • links to actual Unity3D documentation you used to cross-check your work (CRITICAL!!!)

The purpose of YOU providing links is to make our job easier, while simultaneously showing us that you actually put effort into the process. If you haven’t put effort into finding the documentation, why should we bother putting effort into replying?