AiState.onUnitUpdate
Updates the state by adding delta time progression.
Kind: Function
Environments: Game
Game
aiState:onUnitUpdate( deltaTime )
Availability: Server only
Should be called once every unit update, by the unit that owns the state, while the state is active.
Parameters:
| Name | Type | Description |
|---|---|---|
state |
AiState | The AI state. |
deltaTime |
number | The delta time. |