antfarmar / Unity-3D-Asteroids

A simple Asteroids clone. In 3D.
The Unlicense
65 stars 15 forks source link

Power-up System: Implementation #32

Open antfarmar opened 8 years ago

antfarmar commented 8 years ago

Current Implementation

The current implementation of the power-up system is fairly basic. It's design (or lack thereof) was mostly an experiment in inheritance, abstract/virtual methods, and faking GameObject states like inactive.

A better design would make use of more advanced techniques like _Events_. The power-up system is a perfect use case.

antfarmar commented 8 years ago

Fire Powerup Stacking

Could stack firing powerups using a delegate multicast on the Shoot() methods.