Book Image

Creating E-Learning Games with Unity

By : David Horachek
Book Image

Creating E-Learning Games with Unity

By: David Horachek

Overview of this book

Table of Contents (17 chapters)
Creating E-Learning Games with Unity
Credits
About the Author
About the Reviewers
www.PacktPub.com
Preface
Index

Modifying the quiz cards


The QuizCard pop-up window Prefab is the class that permits user interaction with an NPC; upon selecting the button corresponding to the correct response, the CorrectResponse window pop up will be instantiated.

  1. Copy and paste a QuizCard Prefab from Chapter7 into a new folder in Chapter9. Name the new folder NpcQuestions.

  2. Implement 50 unique NPC Dialog cards based on this Prefab, which in turn is based on the trivia content embedded in the Flag pop ups from LEVEL1; they will form the basis for the dialog in this mission.

  3. Keep the associations to the popup_QuizFailedQuestion Prefab for the incorrect answers on these cards. For the correct selection, instantiate a unique and appropriate CorrectResponse Prefab.

  4. Each QuizCard should have a unique CorrectResponse card. In this way, the player can see a contextually relevant response from you as you reply to the player. This gives an excellent opportunity to reinforce the learning material because it gives you a way to rephrase...