antfarmar / Unity-3D-Asteroids

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

Scoring system implementation #18

Closed ghost closed 8 years ago

ghost commented 8 years ago

image

Simple scoring API
Score.Earn(50);
Score.Earn(50);
Score.Earn(50);
print(Score.earned); // 150
Score visual/audio is implemented like this

System design consideration:

ScoreUI listens for Score changes. When score is earned, each step optionally is executed: