private GachaBall MakeBall() { GachaBall ball = Instantiate <GachaBall>(ballPrefab, this.transform); ball.transform.position = spawnPosit.position + ((Vector3)Random.insideUnitCircle); return(ball); }
private void MakeBalls(int num) { for (int i = 0; i < num; i++) { GachaBall ball = MakeBall(); balls.Add(ball); } }