Generates the path the NPCs take and handles cleanup of NPCs once finished. More...
Public Types | |
enum | NPCState { Walk , Idle , Panic } |
Public Member Functions | |
void | SetGoalAndHome (Transform goal, Transform home) |
Recieves and sets the goal position and home position. | |
void | RemoveCoherency () |
This method removes the NPC from the players coherency zone. | |
void | DestroySelf () |
Protected Member Functions | |
virtual void | Awake () |
virtual void | Update () |
void | SetNewGoal (Transform newGoal) |
Begins the NPC's path to the goal given. | |
Transform | GetNewRandomGoal () |
void | CheckDistance () |
virtual void | CompletePath () |
virtual void | Panic () |
Protected Attributes | |
NavMeshAgent | agent |
Transform | homeSpawnPoint |
Transform | goalPoint |
float | endSize = 0.5f |
Properties | |
NPCState | State [get, set] |
Generates the path the NPCs take and handles cleanup of NPCs once finished.
enum NPCPather.NPCState |
|
protectedvirtual |
|
protected |
|
protectedvirtual |
void NPCPather.DestroySelf | ( | ) |
|
protected |
|
protectedvirtual |
Reimplemented in Crowd.
void NPCPather.RemoveCoherency | ( | ) |
This method removes the NPC from the players coherency zone.
void NPCPather.SetGoalAndHome | ( | Transform | goal, |
Transform | home ) |
Recieves and sets the goal position and home position.
goal | |
home |
|
protected |
Begins the NPC's path to the goal given.
newGoal |
|
protectedvirtual |
Reimplemented in Follower.
|
protected |
|
protected |
|
protected |
|
protected |
|
getset |