Ease of Building UI Elements in Unity

Now everything will stay relative to its position no matter the screen size
using UnityEngine.UI;
This allows us to use Get Component only once
Set the type of information this method receives.
The number in the Parenthesis represent the amount of points and can be set to random
Using this method to cuts down on the expensive Get Component command
This help ease bug catching later
Setting the local variable to an int so it only works with whole numbers.
The points from the enemy are converted on the player and sent to the UI Manager.

Love podcasts or audiobooks? Learn on the go with our new app.

Recommended from Medium

Masked Entry in Xamarin.Forms

How I Launched My First App

MMap’s in Python

SQLite3 Demo

Beta Game Announcement

Using the paketo nginx buildpack to build an nginx Docker image

GraphQL — Introduction

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store
addam davis

addam davis

More from Medium

2D Player Animation (part 4)

Platformer: Player Animation Part 1

Creating A Respawn/Checkpoint System In Unity

Creating a First-Person Gun Holding Animation in Unity