Player Setup
Player Setup
To create a new Player:
Create a new game object and add a Game Agent component.
Go to the inspector of the Game Agent component and check the Is Player checkbox
To check if a specific game agent is the player in code, use the following:
// Check if the game agent is a player
if (someGameAgent.IsPlayer)
{
// Run code
}
Player Input
To set up the player input, check out the Input section.
Game Agents
Learn about everything you can do with Game Agents (the component that is used for both Player and AI) in this section.
Last updated
Was this helpful?