|
virtual void | FindCrowd (List< GameObject > crowdPoints) |
| Attemps to find a crowd on spawn and path to a point within.
|
|
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 () |
|
◆ ChangeDirection()
virtual void Crowd.ChangeDirection |
( |
| ) |
|
|
protectedvirtual |
◆ CompletePath()
override void Crowd.CompletePath |
( |
| ) |
|
|
protectedvirtual |
◆ FindCrowd()
virtual void Crowd.FindCrowd |
( |
List< GameObject > | crowdPoints | ) |
|
|
virtual |
Attemps to find a crowd on spawn and path to a point within.
- Parameters
-
crowdPoints | Points the npcs can choose from |
Reimplemented in Leader.
◆ LeaveCrowd()
virtual void Crowd.LeaveCrowd |
( |
| ) |
|
|
protectedvirtual |
Occurs after standing within a crowd and makes the NPC look for an exit to the scene.
Reimplemented in Leader.
◆ Panic()
override void Crowd.Panic |
( |
| ) |
|
|
protectedvirtual |
◆ ResetRandomDirection()
void Crowd.ResetRandomDirection |
( |
| ) |
|
|
protected |
◆ RollCrowd()
Returns a random crowd from the list of crowd points in the scene.
- Parameters
-
◆ SetNewRandomCrowd()
void Crowd.SetNewRandomCrowd |
( |
| ) |
|
|
protected |
◆ Start()
virtual void Crowd.Start |
( |
| ) |
|
|
protectedvirtual |
◆ crowd
◆ crowdPickChance
float Crowd.crowdPickChance = 0.4f |
|
protected |
◆ isGoingToCrowd
bool Crowd.isGoingToCrowd |
|
protected |
◆ isLeading
bool Crowd.isLeading = false |
|
protected |
◆ standingPoint
The documentation for this class was generated from the following file: