Obstacle Course With Coins!

I made just a basic obstacle course with the spinners, rollers, dropper, etc. But I decided to add three coin cylinder objects that the player can collect. I attached the Spinner.cs script to the prefab for them and changed the value for them to spin slowly.

I also created a Coin.cs script to attach to the Coin prefab that disables the MeshRenderer and Collider on them once the Player touches one. And then I modified the Scorer.cs to also keep track of how many coins the Player has collected and display the number in the console. I made a few mistakes on this part, but solving the issues (while a slightly frustrating experience) really helped with strengthening my knowledge of the concepts Rick went over in earlier lectures.

P.S. This is my first time posting. I’ve really been enjoying the course so far!

1 Like

Welcome to the community and well done on your level! That looks really cool! :smiley:

Privacy & Terms