Game Development Reference
In-Depth Information
Monument : This GameObject hierarchy contains a set of five flagmount loc-
ations. These are the places where the flags will be attached once the user
finds the missing flags and returns them.
MissionMgrHelper : This helper class allows a GameObject to manipulate
the state of an already-existing mission. This is done by associating the script
with a Prefab and then instantiating after a user interaction.
SetupMissionOne : To accomplish the objectives of the level, this class in-
stalls two missions in the MissionMgr class that we developed in the pre-
vious chapter and also picks the random flags and flag locations for those
missions.
TriviaCardScript : This class displays a full screen texture on screen that
represents a trivia card for a state. The script adjusts the size and layout of
the texture and displays it centered on screen. These cards will appear when
the flags are first picked up and when they are selected in the inventory.
MonumentMgr : The gameplay objective of this level is to locate flags and re-
turn them to a monument with a number of empty mounting points. This class
provides an interface for the monument hierarchy to attach an object (a re-
turned flag) to one of the monument's flagmount points.
SimpleDetachScript : This class detaches the GameObject that it is at-
tached to, from any parent transforms, thereby making its parent the global
coordinates. This is necessary for packaging GUITextures in a Prefab for
instancing and then previewing.
The first two collections will be referenced by SetupMissionOne , which picks the
flag locations, picks five Prefabs, and instances them. A number of Prefabs will need
to be created as well to facilitate the flow logic across missions. Finally, some sys-
tems from Chapter 1 , Introduction to E-Learning and the Three Cs of 3D Games ,
and Chapter 2 , Interactive Objects and MissionMgr , will be updated to improve the
gameplay.
Search WWH ::




Custom Search