Пример #1
0
    private GachaBall MakeBall()
    {
        GachaBall ball = Instantiate <GachaBall>(ballPrefab, this.transform);

        ball.transform.position = spawnPosit.position + ((Vector3)Random.insideUnitCircle);

        return(ball);
    }
Пример #2
0
 private void MakeBalls(int num)
 {
     for (int i = 0; i < num; i++)
     {
         GachaBall ball = MakeBall();
         balls.Add(ball);
     }
 }