The first type of object loaded by the TriggerManager is the waypoint managers and waypoints. These objects are loaded first as a prep to loading the player and fighters, both of which usually need waypoint data.
Here’s the code:
The waypoint manager is simplistic in its structure. It does not perform constant update function; it holds data and performs simple functions when requested by another script. The waypoint manager’s primary function is to hold and track a collection of waypoints. When queried with a waypoint, the manager will output the next waypoint in the list. In addition, the waypoint manager has methods to add and remove waypoints from the waypoint list.