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);
}
}
}