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.

--

--

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