Property | Type | Description | |
---|---|---|---|
bnIsMoving | bool | ||
canMove | bool | ||
canSearch | bool | ||
drawGizmos | bool | ||
pickNextWaypointDistance | float | ||
repathRate | float | ||
speed | float | ||
targetReached | float |
Property | Type | Description | |
---|---|---|---|
col | Collider | ||
controller | CharacterController | ||
lastPathSearch | float | ||
path | Vector3[] | ||
pathIndex | int | ||
seeker | Seeker, | ||
tr | Transform |
Method | Description | |
---|---|---|
Awake ( ) : void | ||
ClickedTargetPosition ( Vector3 newTargetPosition ) : void |
Change the target when the player clicks
|
|
OnDrawGizmos ( ) : void | ||
OnPathComplete ( Path p ) : void | ||
PathToTarget ( Vector3 targetPoint ) : void | ||
ReachedEndOfPath ( ) : void | ||
Repath ( ) : void | ||
Resume ( ) : void | ||
Stop ( ) : void | ||
Update ( ) : void | ||
WaitToRepath ( ) : IEnumerator |
public ClickedTargetPosition ( Vector3 newTargetPosition ) : void | ||
newTargetPosition | Vector3 | |
return | void |
public PathToTarget ( Vector3 targetPoint ) : void | ||
targetPoint | Vector3 | |
return | void |
protected CharacterController controller | ||
return | CharacterController |