-
Book Overview & Buying
-
Table Of Contents
Creating E-Learning Games with Unity
By :
The interactive Object class is the base script that enables a player in our game to have meaningful gameplay interactions. To meet the design needs of our game, this script provides an interface with which the game designer can specify how the player will interact with an object as it is picked up. In addition to this, it also permits subtle rotation on the object for a nice effect. The CustomGameObj and ObjectInteraction helper classes are used by the object class to define the specific nature of the interactions and how the object behaves in the inventory when collected.
The MissionMgr class is the system that tracks the user's progress through the game and rewards him or her on achieving success. When a user interacts with an interactive object, MissionToken attached to it (if any) is collected and tracked by MissionMgr. The MissionMgr class has a template of all missions, the tokens that each mission is composed of, and the reward that should be given when...
Change the font size
Change margin width
Change background colour