O'Reilly logo

Unity Game Development Blueprints by John P. Doran

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Winning the game

Now that we have the goals showing, we now need some way in order to complete the project. With that in mind, let's create our goal:

  1. Create a new particle system by going into GameObject | Create Other | Particle System (in case of Unity 4.6, go to GameObject | Particle System). Change the name of the object to Goal.
  2. Under the Shape section, change the Shape variable to Box, and change Box X to 1 and Box Y and Box Z to 0.
  3. Click on the arrow on the right-hand side of Start Lifetime, and change the values to Random Between Two Constants. Change those values to 0 and 1. Do the same with Start Speed between 2 and 4. Make Start Size use random values between 0 and 0.5. Change Start Color to Random Between Two Colors using a green and ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required