S.A.P.S V0.4.0
A virtual reality stealth action game
 
Loading...
Searching...
No Matches
Target Class Reference
Inheritance diagram for Target:
Crowd NPCPather

Public Attributes

UnityEvent OnTargetEscape = new UnityEvent()
 

Protected Member Functions

override void Start ()
 
override void CompletePath ()
 
- Protected Member Functions inherited from Crowd
virtual void LeaveCrowd ()
 Occurs after standing within a crowd and makes the NPC look for an exit to the scene.
 
void SetNewRandomCrowd ()
 
CrowdPointAllocator RollCrowd (List< GameObject > crowdPoints)
 Returns a random crowd from the list of crowd points in the scene.
 
virtual void ChangeDirection ()
 
void ResetRandomDirection ()
 
override void Panic ()
 
- Protected Member Functions inherited from NPCPather
virtual void Awake ()
 
virtual void Update ()
 
void SetNewGoal (Transform newGoal)
 Begins the NPC's path to the goal given.
 
Transform GetNewRandomGoal ()
 
void CheckDistance ()
 

Additional Inherited Members

- Public Types inherited from NPCPather
enum  NPCState { Walk , Idle , Panic }
 
- Public Member Functions inherited from Crowd
virtual void FindCrowd (List< GameObject > crowdPoints)
 Attemps to find a crowd on spawn and path to a point within.
 
- Public Member Functions inherited from NPCPather
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 Attributes inherited from Crowd
float crowdPickChance = 0.4f
 
bool isLeading = false
 
bool isGoingToCrowd
 
CrowdPointAllocator crowd
 
int standingPoint
 
- Protected Attributes inherited from NPCPather
NavMeshAgent agent
 
Transform homeSpawnPoint
 
Transform goalPoint
 
float endSize = 0.5f
 
- Properties inherited from NPCPather
NPCState State [get, set]
 

Member Function Documentation

◆ CompletePath()

override void Target.CompletePath ( )
protectedvirtual

Reimplemented from Crowd.

◆ Start()

override void Target.Start ( )
protectedvirtual

Reimplemented from Crowd.

Member Data Documentation

◆ OnTargetEscape

UnityEvent Target.OnTargetEscape = new UnityEvent()

The documentation for this class was generated from the following file: