using System.Collections;
using System.Collections.Generic;
using UnityEngine;

public class PowerupSpawner : MonoBehaviour
{
    [SerializeField] GameObject[] powerUpPrefabs;

    public void BlockDestroyed(Vector3 pos)
    {
        if(Random.value < 0.5f)
        {
            Instantiate(powerUpPrefabs[Random.Range(0, powerUpPrefabs.Length)], pos, Quaternion.identity);
        }
    }
}
