O'Reilly logo

Unity 3D Game Development by Example by Ryan Henson Creighton

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

Time for action - bring on the bad guys

Unlike The Break-Up, where we had good items and bad items, we'll have only bad items in our space shooter. Those bad items will be evil enemy spaceships that are hell-bent on destroying the universe, or whatever. Let's nix the beer steins, and leverage the work we've already done on our Bomb Prefab to swap them out for our enemy spacecraft.

  1. In the Hierarchy panel, click on the Stein Prefab and delete it. So much for space beer.
  2. Drag the EnemyShip model from the Project panel into the Scene.
    Time for action - bring on the bad guys
  3. In the Hierarchy panel, click on the gray arrow to expand the Bomb Prefab contents.
  4. Delete the Bomb child. Once again, ...

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