MooICT Implementing a State machine in Unity- Introduction Now for the Combat State, we check if the player has moved more than the chasing distance units away from the NPC, if it has, we revert back to patrolling, if it hasn’t, the NPC chases the player.Key Features * Built-in object pooling system * Efficient and powerful – Crux performs well by despawning AI that are out of range and only making efficient calculations once every spawn interval.
The City-Building Kit for Unity includes examples you can edit to use in your own game(s).