C# Class BasicEnemyBehavior, TWI_Repo

Inheritance: MonoBehaviour
Show file Open project: justcollins/TWI_Repo Class Usage Examples

Public Properties

Property 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

Public Methods

Method 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

Method Description
CalculateMovement ( Vector3 t ) : Vector3
FollowPath ( ) : IEnumerator
LookForTarget ( ) : IEnumerator

Method Details

Awake() public method

public Awake ( ) : void
return void

CheckForRequirements() public method

public CheckForRequirements ( ) : void
return void

CheckWherePlayerIs() public method

public CheckWherePlayerIs ( ) : void
return void

DealDamage() public method

public DealDamage ( ) : void
return void

FixedUpdate() public method

public FixedUpdate ( ) : void
return void

GoToPlayer() public method

public GoToPlayer ( ) : void
return void

GoToWaypoint() public method

public GoToWaypoint ( ) : void
return void

GotRespawned() public method

public GotRespawned ( ) : void
return void

LookAtTarget() public method

public LookAtTarget ( Vector3 target ) : void
target Vector3
return void

MakeMeChase() public method

public MakeMeChase ( ) : void
return void

Movement() public method

public Movement ( ) : void
return void

OnDrawGizmos() public method

public OnDrawGizmos ( ) : void
return void

OnPathFound() public method

public OnPathFound ( Vector3 newPath, bool pathSuccess ) : void
newPath Vector3
pathSuccess bool
return void

Start() public method

public Start ( ) : void
return void

Update() public method

public Update ( ) : void
return void

Property Details

allowedToPatrol public property

public bool allowedToPatrol
return bool

allowedToWander public property

public bool allowedToWander
return bool

damageThreshold public property

public float damageThreshold
return float

distanceThreshold public property

public float distanceThreshold
return float

findTargetAutomatically public property

public bool findTargetAutomatically
return bool

initialPatrolPoint public property

public Waypoint, initialPatrolPoint
return Waypoint,

lowerboundWait public property

public float lowerboundWait
return float

maxVelocity public property

public float maxVelocity
return float

playerDamageHandler public property

public DamageHandler, playerDamageHandler
return DamageHandler,

rotateSpeed public property

public float rotateSpeed
return float

showDebugMessages public property

public bool showDebugMessages
return bool

upperboundWait public property

public float upperboundWait
return float

wanderpoints public property

public Transform[] wanderpoints
return Transform[]

waypointRadius public property

public float waypointRadius
return float