C# Class MovimientoAleatorioCivil, ES2015C

Inheritance: MonoBehaviour
Mostrar archivo Open project: jgirald/ES2015C

Public Properties

Property Type Description
anim Animator
directionChangeInterval float
maxHeadingChange float
speed float

Private Properties

Property Type Description
NewHeadingRoutine IEnumerator

Public Methods

Method Description
Awake ( ) : void
NewHeading ( ) : void

Calculates a new direction to move towards.

OnControllerColliderHit ( ControllerColliderHit hit ) : void
Update ( ) : void

Private Methods

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.

Method Details

Awake() public method

public Awake ( ) : void
return void

NewHeading() public method

Calculates a new direction to move towards.
public NewHeading ( ) : void
return void

OnControllerColliderHit() public method

public OnControllerColliderHit ( ControllerColliderHit hit ) : void
hit UnityEngine.ControllerColliderHit
return void

Update() public method

public Update ( ) : void
return void

Property Details

anim public_oe property

public Animator anim
return Animator

directionChangeInterval public_oe property

public float directionChangeInterval
return float

maxHeadingChange public_oe property

public float maxHeadingChange
return float

speed public_oe property

public float speed
return float