NPC package with basic NPC behaviour which is easily extendable.
npm install cz.xprees.npcThis package provides a NPC-AI solution for Unity build on top of
the Unity AI - Navmesh package
- NPC Controller - A base class for controlling NPCs, which can be extended to create custom NPC behaviors.
- NPC Animation Controller - A base class for controlling NPC animations, which can be extended to create custom NPC animations.
- Patrolling - Using custom Route and Waypoints to define the path for the NPC to
follow and how long to rest on waypoint.
- State Machine - Using StateMachine to define the behavior of the NPC.
Add to your Unity project following OpenUPM and xprees-NPM scoped registries. So you can install the package with the all dependencies
automatically with Unity Package Manager.
Either do it manually or by using the Unity Package Manager UI.Packages/manifest.json
``json`
{
"scopedRegistries": [
{
"name": "OpenUPM",
"url": "https://package.openupm.com",
"scopes": [
"com.cysharp.unitask",
"com.github.siccity.xnode",
"com.dbrizov.naughtyattributes"
]
},
{
"name": "xprees-NPM",
"url": "https://registry.npmjs.org",
"scopes": [
"cz.xprees"
]
}
]
}
Then simply install the package using the Unity Package Manager using the _NPM - xprees_ scope or by the package name cz.xprees.npc`.