Creating a Score System in Unity 2D

Chelsea Cruise
Jun 17, 2021

Objective: create a points system that adds up when we kill an enemy.

After creating a canvas for my scene, I’m going to create a handle for my UIManager.

This function is going to run another function in my UI manager called UpdateScore().

I’m going to connect my score to my Player script.

Finally, I’m going to tell my enemy script to add +10 points to my score if an enemy is shot.

Here we now have a fully function score system.

--

--

Chelsea Cruise

Unity Developer, Software Engineer, Game Designer, Graphic Artist