How to Keep Score - Unity Game Development Tutorial
In this Unity tutorial we're going to allow the Player to gain points by killing enemies, and how to display the score on screen. We'll cover the creation of scripts to keep track of the score and increase it when enemies are killed. Then we'll display the score using Text Mesh Pro and use Unity events to update the UI whenever the score is changed.