C# Class BasicEnemyBehavior, TWI_Repo

Inheritance: MonoBehaviour
显示文件 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_oe property

public bool allowedToPatrol
return bool

allowedToWander public_oe property

public bool allowedToWander
return bool

damageThreshold public_oe property

public float damageThreshold
return float

distanceThreshold public_oe property

public float distanceThreshold
return float

findTargetAutomatically public_oe property

public bool findTargetAutomatically
return bool

initialPatrolPoint public_oe property

public Waypoint, initialPatrolPoint
return Waypoint,

lowerboundWait public_oe property

public float lowerboundWait
return float

maxVelocity public_oe property

public float maxVelocity
return float

playerDamageHandler public_oe property

public DamageHandler, playerDamageHandler
return DamageHandler,

rotateSpeed public_oe property

public float rotateSpeed
return float

showDebugMessages public_oe property

public bool showDebugMessages
return bool

upperboundWait public_oe property

public float upperboundWait
return float

wanderpoints public_oe property

public Transform[] wanderpoints
return Transform[]

waypointRadius public_oe property

public float waypointRadius
return float