пытаюсь решить проблему уже долго,место одного обьекта у меня спавняться по два ,вот скрипт: using System.Collections; using System.Collections.Generic; using UnityEngine; public class spawner : MonoBehaviour { public Transform SpawnPos; public GameObject Cube; void Start() { StartCoroutine(SpawnCD()); } void Repeat() { StartCoroutine(SpawnCD()); } IEnumerator SpawnCD() { Vector2 pos = new Vector2(Random.Range(-6.87f, 6.74f), Random.Range(3.62f, 3.63f)); yield return new WaitForSeconds(1.0f); Instantiate(Cube, pos, Quaternion.identity); Repeat(); } } че делать?