Exemplo n.º 1
0
    private void SpawnBunny(PieSpot pieSpot)
    {
        Bunny bunnyPrefab = BunniesPrefabs[UnityEngine.Random.Range(0, BunniesPrefabs.Length)];

        Bunny newBunny = Instantiate(bunnyPrefab, pieSpot.transform.position, Quaternion.identity);

        newBunny.SetTimeStealing(TimeBeforeStealing);
        newBunny.PutInSpot(pieSpot);
        currentBunnies.Add(newBunny);
    }