O'Reilly logo

Unity 5.x 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 up, we now need some way in order to complete the project. With this in mind, let's create our final place, a goal, or the player to reach to go to the next level.

  1. Create a new Particle System by going into 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 be 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 the Start Color to a Random Between Two Colors using a green and purple ...

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