Property | Type | Description | |
---|---|---|---|
anim | Animator | ||
directionChangeInterval | float | ||
maxHeadingChange | float | ||
speed | float |
Property | Type | Description | |
---|---|---|---|
NewHeadingRoutine | IEnumerator |
Method | Description | |
---|---|---|
Awake ( ) : void | ||
NewHeading ( ) : void |
Calculates a new direction to move towards.
|
|
OnControllerColliderHit ( |
||
Update ( ) : void |
Method | Description | |
---|---|---|
NewHeadingRoutine ( ) : IEnumerator |
Repeatedly calculates a new direction to move towards. Use this instead of MonoBehaviour.InvokeRepeating so that the interval can be changed at runtime.
|
public OnControllerColliderHit ( |
||
hit | ||
return | void |