Adding a mission to the missionMgr script
missionMgr script attached to the GameObject (a child of _global). This is the class that manages tracking objectives in the game. In order to create a new mission for level two, let's perform the following steps:
- Select the
missionMgr script, and set the size of the mission's component to 1, telling the system we will have one mission in this level.
- Set the mission to activated, visible, and MS_ACQUIRED so that the level starting with this mission is ready to be processed from the start.
- Set the display name to win the race and the description to achieve 100% accuracy and first place in the race.
- Set the token component size to 0. Another script will fill these dynamically, but eventually it will ...