Свойство | Тип | Описание | |
---|---|---|---|
directionVariable | string | ||
mecanimAnimator | Animator | ||
minDistanceMoveThreshold | float | ||
rotationLerpRate | float | ||
speedVariable | string |
Метод | Описание | |
---|---|---|
OnDrawGizmos ( ) : void | ||
OnNewDestination ( Vector3 targetPoint, float movementSpeed, float rotationSpeed ) : void | ||
Start ( ) : void | ||
Update ( ) : void | ||
UpdateVerticalAndHorizontalMovement ( ) : void |
Метод | Описание | |
---|---|---|
GetCharacterOffsetVector ( ) : Vector3 | ||
GetTurnValue ( Vector3 offsetVector ) : float | ||
ShouldMoveForward ( Vector3 offsetVector ) : bool | ||
ShouldTurn ( Vector3 offsetVector ) : bool |
public OnNewDestination ( Vector3 targetPoint, float movementSpeed, float rotationSpeed ) : void | ||
targetPoint | Vector3 | |
movementSpeed | float | |
rotationSpeed | float | |
Результат | void |
public UpdateVerticalAndHorizontalMovement ( ) : void | ||
Результат | void |