Rick, not sure what is going on with my enemy shooting, but for some reason when my enemies instantiate a laser it spawns multiple copies of the laser on top of each other creating trails as they go down the screen. I checked my code and it reads identical to yours. I didn’t catch it until after I implemented the audio and the audio clips just hang out after the enemy lasers have gone through the shredder, cluttering up my inspector and hitting performance. Any idea why it would do this? It doesn’t happen on every laser shot, only maybe 50% of the time.
Never mind, I was able to pinpoint the problem. At some point I attached my Enemy.cs to my laser and it was duplicating its own lasers.
This topic was automatically closed 24 hours after the last reply. New replies are no longer allowed.