Coins and Scoring. 2D Sidescroller

Next i needed to add the coins and the scoring system to the game. In order to do this, i needed to make the coins a prefab, and put a box collider on them so that I could reference this as an is trigger.


I first set out my Score Manager script, this script would contain all of the code to increase the score every time a coin box collider was entered.

The Coin script contains the coin value and the change score instance


Comments

Popular Posts