C# Class BasicEnemyBehavior, TWI_Repo

Inheritance: MonoBehaviour
Afficher le fichier Open project: justcollins/TWI_Repo Class Usage Examples

Méthodes publiques

Свойство Type Description
allowedToPatrol bool
allowedToWander bool
damageThreshold float
distanceThreshold float
findTargetAutomatically bool
initialPatrolPoint Waypoint,
lowerboundWait float
maxVelocity float
playerDamageHandler DamageHandler,
rotateSpeed float
showDebugMessages bool
upperboundWait float
wanderpoints Transform[]
waypointRadius float

Méthodes publiques

Méthode Description
Awake ( ) : void
CheckForRequirements ( ) : void
CheckWherePlayerIs ( ) : void
DealDamage ( ) : void
FixedUpdate ( ) : void
GoToPlayer ( ) : void
GoToWaypoint ( ) : void
GotRespawned ( ) : void
LookAtTarget ( Vector3 target ) : void
MakeMeChase ( ) : void
Movement ( ) : void
OnDrawGizmos ( ) : void
OnPathFound ( Vector3 newPath, bool pathSuccess ) : void
Start ( ) : void
Update ( ) : void

Private Methods

Méthode Description
CalculateMovement ( Vector3 t ) : Vector3
FollowPath ( ) : IEnumerator
LookForTarget ( ) : IEnumerator

Method Details

Awake() public méthode

public Awake ( ) : void
Résultat void

CheckForRequirements() public méthode

public CheckForRequirements ( ) : void
Résultat void

CheckWherePlayerIs() public méthode

public CheckWherePlayerIs ( ) : void
Résultat void

DealDamage() public méthode

public DealDamage ( ) : void
Résultat void

FixedUpdate() public méthode

public FixedUpdate ( ) : void
Résultat void

GoToPlayer() public méthode

public GoToPlayer ( ) : void
Résultat void

GoToWaypoint() public méthode

public GoToWaypoint ( ) : void
Résultat void

GotRespawned() public méthode

public GotRespawned ( ) : void
Résultat void

LookAtTarget() public méthode

public LookAtTarget ( Vector3 target ) : void
target Vector3
Résultat void

MakeMeChase() public méthode

public MakeMeChase ( ) : void
Résultat void

Movement() public méthode

public Movement ( ) : void
Résultat void

OnDrawGizmos() public méthode

public OnDrawGizmos ( ) : void
Résultat void

OnPathFound() public méthode

public OnPathFound ( Vector3 newPath, bool pathSuccess ) : void
newPath Vector3
pathSuccess bool
Résultat void

Start() public méthode

public Start ( ) : void
Résultat void

Update() public méthode

public Update ( ) : void
Résultat void

Property Details

allowedToPatrol public_oe property

public bool allowedToPatrol
Résultat bool

allowedToWander public_oe property

public bool allowedToWander
Résultat bool

damageThreshold public_oe property

public float damageThreshold
Résultat float

distanceThreshold public_oe property

public float distanceThreshold
Résultat float

findTargetAutomatically public_oe property

public bool findTargetAutomatically
Résultat bool

initialPatrolPoint public_oe property

public Waypoint, initialPatrolPoint
Résultat Waypoint,

lowerboundWait public_oe property

public float lowerboundWait
Résultat float

maxVelocity public_oe property

public float maxVelocity
Résultat float

playerDamageHandler public_oe property

public DamageHandler, playerDamageHandler
Résultat DamageHandler,

rotateSpeed public_oe property

public float rotateSpeed
Résultat float

showDebugMessages public_oe property

public bool showDebugMessages
Résultat bool

upperboundWait public_oe property

public float upperboundWait
Résultat float

wanderpoints public_oe property

public Transform[] wanderpoints
Résultat Transform[]

waypointRadius public_oe property

public float waypointRadius
Résultat float