This video demonstrates how to write code to add scoring to a 2D platformer game in Unity. This video shows how to increase the score when the player touches a collectable object (eg. gem). In the next video, we will look at how to add a UI to display the score on-screen during the game.
There are two scripts used in this tutorial - https://github.com/danielkwood/Unity2... and https://github.com/danielkwood/Unity2...
Unity website - https://unity.com
GitHub - https://github.com/danielkwood/Unity2...
Free Pixel Space Platform Pack - https://assetstore.unity.com/packages...