O'Reilly logo

Augmented Reality Game Development by Micheal Lanham

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

Catching the monster

We have now come to the culmination of our scene: catching the monster. The monster can be hit by the ice balls, and the balls explode on impact, but nothing happens to the monster. If you recall, the player throws the ice balls at the monster in order to freeze them. What we will do then is add a script to slow down our monster with each ice ball hit, and when the monster is hit enough times, it will freeze. Perform the following directions to add and review the script:

  1. From the menu, select GameObject | UI | Canvas. This will add a new Canvas and EventSystem objects to the scene. Delete the EventSystem and rename the CanvasCaught_UI. Reparent the Caught_UI object to the CatchScene object.
  2. Select the Caught_UI object in the ...

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