- Home /
Scripts wont work if deactivated then activated?
Hi my project consists of spawners (a 2d project), these spawners are gameobjects with scripts attached that spawn sprites and move them across the screen and when they reach a certain position they respawn. But I dont want them spawning until I click a button so I have all the spawners inside an empty gameobject that is deactivated so the spawners which are a child of the deactivated gameobject wont run the script that spawns the sprites, and from my central script I detach them from the empty gameobject when I click a button so they will start spawning, they do spawn but now when that happens the gameobjects that are being spawned wont run certain parts of scripts attached to them? I have no idea why this could be possibly happening?
You should post your scripts here. This sounds like a scripting issue.