C# Class Unit, ES2015C

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

Méthodes publiques

Свойство Type Description
visibility float

Protected Properties

Свойство Type Description
doSound AudioClip
idleSound AudioClip
moving bool
running bool
runningSound AudioClip
walkingSound AudioClip

Méthodes publiques

Méthode Description
FindClosest ( string tag ) : GameObject
GoTo ( Vector3 target, bool isRunning ) : void
makeDoSound ( ) : void

Méthodes protégées

Méthode Description
AimAtTarget ( ) : void
Animating ( ) : void
Awake ( ) : void
CancelPath ( ) : void

Tell the unit to cancel the movement path to the given position.

HasPath ( ) : bool

Tell the unit to cancel the movement path to the given position.

OnGUI ( ) : void
OnMouseDown ( ) : void
SetNewPath ( Vector3 target, bool isRunning ) : void

Tells the unit to move to the given position, by generating and following a route to the desired position.

Update ( ) : void
UseWeapon ( ) : void
chargeSounds ( string objectName ) : void

Private Methods

Méthode Description
FittedCharacterCollider ( ) : void
OnPathComplete ( Path newPath ) : void
moveToPosition ( ) : void

Method Details

AimAtTarget() protected méthode

protected AimAtTarget ( ) : void
Résultat void

Animating() protected méthode

protected Animating ( ) : void
Résultat void

Awake() protected méthode

protected Awake ( ) : void
Résultat void

CancelPath() protected méthode

Tell the unit to cancel the movement path to the given position.
protected CancelPath ( ) : void
Résultat void

FindClosest() public méthode

public FindClosest ( string tag ) : GameObject
tag string
Résultat GameObject

GoTo() public méthode

public GoTo ( Vector3 target, bool isRunning ) : void
target Vector3
isRunning bool
Résultat void

HasPath() protected méthode

Tell the unit to cancel the movement path to the given position.
protected HasPath ( ) : bool
Résultat bool

OnGUI() protected méthode

protected OnGUI ( ) : void
Résultat void

OnMouseDown() protected méthode

protected OnMouseDown ( ) : void
Résultat void

SetNewPath() protected méthode

Tells the unit to move to the given position, by generating and following a route to the desired position.
protected SetNewPath ( Vector3 target, bool isRunning ) : void
target Vector3 The position we want the unit to move to.
isRunning bool
Résultat void

Update() protected méthode

protected Update ( ) : void
Résultat void

UseWeapon() protected méthode

protected UseWeapon ( ) : void
Résultat void

chargeSounds() protected méthode

protected chargeSounds ( string objectName ) : void
objectName string
Résultat void

makeDoSound() public méthode

public makeDoSound ( ) : void
Résultat void

Property Details

doSound protected_oe property

protected AudioClip doSound
Résultat AudioClip

idleSound protected_oe property

protected AudioClip idleSound
Résultat AudioClip

moving protected_oe property

protected bool moving
Résultat bool

running protected_oe property

protected bool running
Résultat bool

runningSound protected_oe property

protected AudioClip runningSound
Résultat AudioClip

visibility public_oe property

public float visibility
Résultat float

walkingSound protected_oe property

protected AudioClip walkingSound
Résultat AudioClip