public void AddCircle(int circleId, double circleX, double circleY, double circleRadius, bool belongsToCurrentPlayer) { CircleController newCircle = Instantiate(circlePrefab); newCircle.Id = circleId; newCircle.SetName(circleId.ToString(), true); newCircle.transform.position = new Vector2((float)circleX, (float)circleY); newCircle.transform.localScale = new Vector3((float)circleRadius, (float)circleRadius, (float)circleRadius); newCircle.isMoving = true; if (belongsToCurrentPlayer) { newCircle.transform.SetParent(currentPlayerContainer.transform); currentPlayerCircles.Add(newCircle); } else { newCircle.transform.SetParent(otherPlayersContainer.transform); otherPlayersCircles.Add(newCircle); } }