C# Class UnitMovement, ES2015F

Inheritance: MonoBehaviour
Show file Open project: jgirald/ES2015F Class Usage Examples

Public Properties

Property Type Description
callback VoidMethod
distanceToTarget float
hasTarget bool
status Status
target Transform
targetPos Vector3

Public Methods

Method Description
Awake ( ) : void
FixedUpdate ( ) : void
OnPathComplete ( Path, p ) : void
startMoving ( GameObject target, VoidMethod callback = null ) : void
stopUnit ( ) : void

Private Methods

Method Description
targetReached ( float distanceToTarget ) : bool

Method Details

Awake() public method

public Awake ( ) : void
return void

FixedUpdate() public method

public FixedUpdate ( ) : void
return void

OnPathComplete() public method

public OnPathComplete ( Path, p ) : void
p Path,
return void

startMoving() public method

public startMoving ( GameObject target, VoidMethod callback = null ) : void
target GameObject
callback VoidMethod
return void

stopUnit() public method

public stopUnit ( ) : void
return void

Property Details

callback public property

public VoidMethod callback
return VoidMethod

distanceToTarget public property

public float distanceToTarget
return float

hasTarget public property

public bool hasTarget
return bool

status public property

public Status status
return Status

target public property

public Transform target
return Transform

targetPos public property

public Vector3 targetPos
return Vector3