O'Reilly logo

Creating E-Learning Games with Unity by David Horachek

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

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

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required