using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class down : MonoBehaviour
{
private bool isGround;
public Transform feetPos;
public float checkRadius;
public LayerMask whatIsGround;
public GameObject detail1;
void Start(){
Instantiate(detail1, new Vector2((Random.Range(-11,11)), 9), Quaternion.identity);
}
void Update()
{
isGround = Physics2D.OverlapCircle(feetPos.position, checkRadius, whatIsGround);
if (isGround == true){
Instantiate(detail1, new Vector2((Random.Range(-11,11)), 9), Quaternion.identity);