Game Agents

What is a Game Agent?

A Game Agent represents a player or AI in the game that can control a vehicle. Separating Game Agents from Vehicles allows them to switch between vehicles at runtime while maintaining their identity.

Creating A Game Agent

To create a new player or AI, simply create a new game object and add a Game Agent component.

The Game Agent component contains events that allow you to run functions when key events occur for that game agent.