Game Development Reference
In-Depth Information
if (mm)
Camera.main.Getcomponent<GameCam>().LookUp();
40. We then check the
missionMgr
script for the status of the first mission. At
this point, we know the game is done because the list is full, but the player
may or may not have got 100 percent. If the player achieved 100 percent on
the quiz, it means that the first mission is complete, and hence we should ac-
tivate the pass pop up as shown in the following code snippet:
if (mm.isMissionComplete(0) == true)
{
passPopup.SetActive(true);
}
41. Otherwise, we activate the fail pop up as shown in the following code snippet:
else
{
fail.Popup.SetActive(true)
}
42. Excellent! At this point,
DecisionMgr
is fully populated and should look
somewhat like the following screenshot: