How to Keep Score in Unity Using Unity Events and Text Mesh Pro

Опубликовано: 25 Сентябрь 2023
на канале: Ketra Games
5,791
128

In this Unity tutorial we're going to look at how 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.

This is the fifteenth video in our series showing how to make a full top down 2D shooter game in Unity.

The playlist for this series can be found here
►    • Unity 2D Top Down Shooter for Beginners  

The project files are available to our patrons here:
►   / 89775350  

Want to follow along? This project is a good starting point
►   / 88654003  

The full Top Down Shooter Project is available to our patrons here
►   / 75231350  

The final script can be found here
► https://dotnetfiddle.net/CCn3IZ

Help support our work:
► Patreon:   / ketragames  

Follow us:
► Ketra Games: http://www.ketra-games.com
► Patreon:   / ketragames  
► Twitter:   / ketragames  
► Facebook:   / ketragames  

Introduction - 0:00
Creating a Script to Keep Track of the Score - 0:35
Creating a Script to Increase the Score When the Enemy Dies - 2:30
Displaying the Score in the UI Using Text Mesh Pro - 5:24
Summary - 8:44:38

Thumbnail Image by FreePik - https://www.freepik.com/free-vector/f...

#KetraGames #LearnUnity #UnityTutorials #UnityTips


Смотрите видео How to Keep Score in Unity Using Unity Events and Text Mesh Pro онлайн, длительностью часов минут секунд в хорошем качестве, которое загружено на канал Ketra Games 25 Сентябрь 2023. Делитесь ссылкой на видео в социальных сетях, чтобы ваши подписчики и друзья так же посмотрели это видео. Данный видеоклип посмотрели 5,791 раз и оно понравилось 128 посетителям.