Unity Tutorial 09

Again this is like the 100th blog on a unity Tutorial but anyways here is where another 3 hours of my time I spent on Unity went.
Doing this tutorial I learned a few things like:
  • Getting a 2D view
  • Mouse Events and Loops
  • Tossing random objects
  • Canvases and TextMeshPros
  • Buttons and the UI Library
  • Restart button and on click events
What I had to do in this tutorial was:

Start the prototype with the 2D view then make a good and bag target with objects being randomly tossed in the air. Change up the code and make a GameManager with an object list, make a coroutine to spawn the objects. Then let the target be destroyed with a click and sensor.

Unity
Then add the score text on the screen, change its properties and edit the variable. Create an UpdateScore method and make the score change when the target is destroyed. And add a
particle explosion.

Lastly I made a Game Over text object, created a function and made it appear. Stop objects from spawning when Game Over comes up. Then add a restart button and make it work so it shows when Game Over comes up.

And thats that tutorial done now on to the game creating, Bye
- Tochi

Comments

Popular Posts