C# Class MyUnit

Inheritance: MonoBehaviour
Afficher le fichier Open project: TheJP/GlobalGameJam2016 Class Usage Examples

Méthodes publiques

Свойство Type Description
PlayerColor Color
UnitName string

Méthodes publiques

Méthode Description
Initialize ( ) : void
MarkAsAttacking ( Unit, other ) : void
MarkAsDefending ( Unit, other ) : void
MarkAsDestroyed ( ) : void
MarkAsFinished ( ) : void
MarkAsFriendly ( ) : void
MarkAsReachableEnemy ( ) : void
MarkAsSelected ( ) : void
Move ( Cell, destinationCell, List path ) : void
UnMark ( ) : void

Méthodes protégées

Méthode Description
Defend ( Unit, other, int damage ) : void

Private Methods

Méthode Description
Glow ( Color color, float cooloutTime ) : IEnumerator
Jerk ( Unit, other ) : IEnumerator
SetColor ( Color color ) : void
SetHighlighterColor ( Color color ) : void
UpdateHpBar ( ) : void

Method Details

Defend() protected méthode

protected Defend ( Unit, other, int damage ) : void
other Unit,
damage int
Résultat void

Initialize() public méthode

public Initialize ( ) : void
Résultat void

MarkAsAttacking() public méthode

public MarkAsAttacking ( Unit, other ) : void
other Unit,
Résultat void

MarkAsDefending() public méthode

public MarkAsDefending ( Unit, other ) : void
other Unit,
Résultat void

MarkAsDestroyed() public méthode

public MarkAsDestroyed ( ) : void
Résultat void

MarkAsFinished() public méthode

public MarkAsFinished ( ) : void
Résultat void

MarkAsFriendly() public méthode

public MarkAsFriendly ( ) : void
Résultat void

MarkAsReachableEnemy() public méthode

public MarkAsReachableEnemy ( ) : void
Résultat void

MarkAsSelected() public méthode

public MarkAsSelected ( ) : void
Résultat void

Move() public méthode

public Move ( Cell, destinationCell, List path ) : void
destinationCell Cell,
path List
Résultat void

UnMark() public méthode

public UnMark ( ) : void
Résultat void

Property Details

PlayerColor public_oe property

public Color PlayerColor
Résultat Color

UnitName public_oe property

public string UnitName
Résultat string