Open antfarmar opened 8 years ago
Particle system bugfix pull request https://github.com/antfarmar/Unity-3D-Asteroids/pull/16
Added another particle system explosion prefab ExplosionShip
. It is for ship explosions.
Both the PS and AudioSource components are set to play on Awake, so no script is needed.
They are also one-time Instantiations & Destroys. Not pooled. This is inconsistent with the currently used idiom of pooling objects though. But it is a one time occurrence per game. Perhaps it could be a child of the ship prefab.
ExplosionShip
particle systems are still one-time Instantiations & Destroys, but now make use of the ExplosionBehaviour
script so that they may be handled similar to asteroid explosions in code.
Various power-ups & a star system particle background implemented.
development
.
Powerups
Enemies
Foreground/Backgrounds
GUI
Sound