So here’s the code:
void Die()
{
Destroy(gameObject);
GameObject[] podSpawnArray = GameObject.FindGameObjectsWithTag(podSpawnTag);
foreach (GameObject podSpawnPoints in podSpawnArray)
{
GameObject podInstance = Instantiate(Pod, transform.position, transform.rotation);
}
}
To simplify it, I have a single sphere that upon death, instantiates 6 tinier spheres. These spheres spawn on 6 empty objects inside of the sphere, not touching each other (as far as I know.)
I just don’t understand why they’re doing it and ti’s driving me insane.