public class NewBehaviourScript : MonoBehaviour
{
public GameObject Cogaclackkup;
// Start is called before the first frame update
void Start()
{
StartCoroutine("Sayac");
}
void Update()
{
}
IEnumerator Sayac()
{
while (true)
{
yield return new WaitForSeconds(4f);
Instantiate(Cogaclackkup, new Vector3(Random.Range(3,5), Random.Range(3, 5), Random.Range(3, 5)), transform.rotation);
}
}
}