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
About the Author
About the Reviewers

Understanding the mission three GameObjects

In this level, we will implement a number of GameObjects and update others. Some of the game objects are listed as follows:

  • MissionMgr: This GameObject will be present in this level, but we will not use a new mission to track the level progress. The missionMgr GameObject should still stick around in case we want to add secondary missions or side-quests to the game in the future.

  • Player: The Player GameObject will need to have a working playerData component script attached to it. Since this level is completed upon achieving a certain score, and since scores (along with other statistics) are tracked in this data structure, we are required to implement playerData.

  • LevelLogicObj : The LevelLogicObj GameObject is the main logic object that will track the players' score and the number of points that have been earned in this level, and will dispatch the pass condition pop up at the end of the level, assuming enough points have been acquired.

  • QuizCard :...