After the setting up the waypoint game objects, the Trigger Manager creates the player. The first script loaded into memory to create a player is the player data script. This script is simple data script used to define a player. In addition to defining a player, this script also contains the basic data necessary to define non-player entities in the game.
Here’s the script:
This is a simple script. It only contains a series of methods to access the stored data. However, it is used as a primary reference to drive accessing the database for player data. Its primary purpose is to centralize the data relating to the player. Centralization, while not necessary currently, will become essential to implement a system to track scores during and between missions. In addition, it will become more important after I add skills to customize individual players.