C# Class UnitMovement, ES2015F

Inheritance: MonoBehaviour
Datei anzeigen 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_oe property

public VoidMethod callback
return VoidMethod

distanceToTarget public_oe property

public float distanceToTarget
return float

hasTarget public_oe property

public bool hasTarget
return bool

status public_oe property

public Status status
return Status

target public_oe property

public Transform target
return Transform

targetPos public_oe property

public Vector3 targetPos
return Vector3