Collecting Coins
Oct 17, 2022
With the movement system implemented, it’s time to actually collect the various coins spread across the level.
First, I add a Canvas with a Text element for the UI.
I also make 2 new C# scripts; UIManager for the Canvas, and a Coin script for the Coins themselves.
Both of these scripts are very simple;
Coin:
UIManager:
Finally, a new function is added to the playercontroller:
Let’s see it in action!