Day 15: UI score setup
Objective: We need to set up some UI for the score.
First, in your hierarchy right click and go to UI and then click text and then that should create a canvas with a text object as it’s child.
Next you will want to anchor it to the top right of the screen so that when you’re working with different screen sizes the text will stay in that same position no matter what.
Now we want to position the text so that it’s in the top right corner. You can do this by typing in the position in the inspector or by click and dragging the text to the top right in the spot you want it.
Then for the text we just want to write score with a colon so we can setup how we want the text to look in our game. You will also want to change the text color to white so we can actually see it. You can do this by going to the text component in the text child of the canvas and clicking the rectangle next to where it says color.