soremix, спасибо, но походу не совсем правильно, вот что отдаёт сервер: {"error":"No apikey provided."},
a с requests: {"ip":"89.185.77.160","country_code":"RO","country_name":"Romania","region_code":"","region_name":"","city":"","zip_code":"","time_zone":"Europe/Bucharest","latitude":45.9968,"longitude":24.997,"metro_code":0}
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);