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 ...

Get Augmented Reality Game Development now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.