O'Reilly logo

Creating Games with Unity and Maya by Adam Watkins

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

CHAPTER 13

Image

Unity Triggers

Thus far we have looked at causing commands to be fired on user-driven events (such as mouse over, mouse down, etc.). We’ve looked at firing commands at the game’s opening. In this chapter we will begin looking at firing commands based upon where the player is in the level. We’ll do this via triggers.

Specifically we will look at using this sort of mechanism to provide screen hints via GUIText. Additionally, this will allow for a new way to move from this EntryWay level to the Hallway level. Triggers can be used to trip any event though. Booby traps could be sprung, lighting changed, objects created or destroyed, all ...

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