Game Development Reference
In-Depth Information
Implementing
the
LevelLogicObj
GameObject
When instantiated, the
LevelLogicObj
object will be detected as soon as the player
and racers enter the LevellogicObj's trigger volume. When three racers have crossed
the finish line, it will determine if the player has met the objectives of the race or
not, and it will enable either the pass or fail retry pop up. In order to implement the
LevelLogicObj
object, we need to perform the following steps:
1. Create a cube game object named
LevelLogicObj
. Scale, orient, and pos-
ition it so that it surrounds the finish line in the level as shown in the following
screenshot:
2. Make sure it has a
Box Collider
component and that the
Is Trigger
checkbox
is checked as shown in the following screenshot: