C# Class UnitMovement, ES2015F

Inheritance: MonoBehaviour
Afficher le fichier Open project: jgirald/ES2015F Class Usage Examples

Méthodes publiques

Свойство Type Description
callback VoidMethod
distanceToTarget float
hasTarget bool
status Status
target Transform
targetPos Vector3

Méthodes publiques

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

Private Methods

Méthode Description
targetReached ( float distanceToTarget ) : bool

Method Details

Awake() public méthode

public Awake ( ) : void
Résultat void

FixedUpdate() public méthode

public FixedUpdate ( ) : void
Résultat void

OnPathComplete() public méthode

public OnPathComplete ( Path, p ) : void
p Path,
Résultat void

startMoving() public méthode

public startMoving ( GameObject target, VoidMethod callback = null ) : void
target GameObject
callback VoidMethod
Résultat void

stopUnit() public méthode

public stopUnit ( ) : void
Résultat void

Property Details

callback public_oe property

public VoidMethod callback
Résultat VoidMethod

distanceToTarget public_oe property

public float distanceToTarget
Résultat float

hasTarget public_oe property

public bool hasTarget
Résultat bool

status public_oe property

public Status status
Résultat Status

target public_oe property

public Transform target
Résultat Transform

targetPos public_oe property

public Vector3 targetPos
Résultat Vector3