Game Development Reference
In-Depth Information
1. Ensure that there are two missions in MissionMgr ; the size of the missions
list in the mission manager is equal to 2.
2. Generally, the default values inside a mission don't really matter (since we set
them up in custom scripts such as SetupMissionOne.cs ; however, some
values need to be preconfigured).
3. In the second mission (mission one), make sure that the token array is of
size 1, and has a reference to the FlagReturnTriggerObj mission token
on the InteractiveObject class that is sitting on top of the MissionMgr
script.
4. In the first mission, set the reward reference variable to the foundthe-
flagresult Prefab in the project tab.
5. In the second mission, set the reward reference variable to the re-
turnedtheflagsresult Prefab in the project tab.
And that's it! Now when these two missions are finished, those Prefabs will be in-
stanced, causing pop ups to appear and time out, and causing other interactions with
the inventory and missions systems as discussed previously.
Playing the level!
We can test our work now by playing the level! Drive the player around the level to
find the five missing flags. Once found, press their icon in the inventory to read the
information about each state. Once all five flags are found, the system will tell you to
return them to the monument, at which time the flags will return and the mission will
be done.
Search WWH ::




Custom Search