Interactive Interaction — Building a User Interface

It’s playable, but it lacks instruction.
Right Click inside the Hierarchy, got to UI, and add text.
Drag it around the Canvas.
These are scripting libraries build into Unity that allow greater functionality.
Make sure you set the scoreText variable in the Unity Inspector window!
Inside the PlayerController C# script.
Inside the PlayerController C# script.
Inside the Enemy C# script.
Inside the PlayerController C# script. You may tell the player script what the UI manager is, if you haven’t already!
You can use the same process to add a lives counter that increments down when the player loses a life!

--

--

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
Jack Leavey

Jack Leavey

I am a software engineer with years of experience branching into game development, specifically in Unity. Follow along for guides on creating game mechanics!