#5 | 21-07-24 | Score Counter


Hello!

Today's task is creating the score counter.

To display the score counter text, I used a Canvas which houses UI elements like text or buttons. I created a script to handle counting and displaying score, with said script attached to the game manager (object that contains scripts that run independent from the player or other objects in the scene).

The score is increased when a projectile collides with the target. After collision, the target is destroyed.

Now when a target is destroyed, the score is increased while being displayed. Next up is creating the time limit mechanic.


Thanks for reading!

Get Hit That Target!

Leave a comment

Log in with itch.io to leave a comment.