The CorrectResponse
Prefabs are the pop ups that will be instantiated from the npcDialog
(quiz cards) for LEVEL3
. Create these according to the following steps:
Copy and paste the
popup_QuizSuccessQuestion
Prefab into a new folder in the folder namedChapter 9
.Create 50 unique
CorrectResponse
cards—one for each state/NPC dialog interaction.We do not need to pass
missionToken
intomissionMgr
when this pop up destructs itself, so ensure that there is nomissionToken
attached (it will do no harm, but it is redundant).Modify
PopupButtonScript.cs
and add anAwardPoints
action. Make sure that when the button is clicked on each of these Prefabs, 500 points are awarded to the user. When the button is clicked, we simply find theplayer
class and theplayerData
component, and then add these values to the score member variable as shown in the following code. Don't forget to add the action to the enumeration at the top of the file:// inside Dispatch() case(popupAction...