C# Class MyUnit

Inheritance: MonoBehaviour
Exibir arquivo Open project: TheJP/GlobalGameJam2016 Class Usage Examples

Public Properties

Property Type Description
PlayerColor Color
UnitName string

Public Methods

Method 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

Protected Methods

Method Description
Defend ( Unit, other, int damage ) : void

Private Methods

Method 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 method

protected Defend ( Unit, other, int damage ) : void
other Unit,
damage int
return void

Initialize() public method

public Initialize ( ) : void
return void

MarkAsAttacking() public method

public MarkAsAttacking ( Unit, other ) : void
other Unit,
return void

MarkAsDefending() public method

public MarkAsDefending ( Unit, other ) : void
other Unit,
return void

MarkAsDestroyed() public method

public MarkAsDestroyed ( ) : void
return void

MarkAsFinished() public method

public MarkAsFinished ( ) : void
return void

MarkAsFriendly() public method

public MarkAsFriendly ( ) : void
return void

MarkAsReachableEnemy() public method

public MarkAsReachableEnemy ( ) : void
return void

MarkAsSelected() public method

public MarkAsSelected ( ) : void
return void

Move() public method

public Move ( Cell, destinationCell, List path ) : void
destinationCell Cell,
path List
return void

UnMark() public method

public UnMark ( ) : void
return void

Property Details

PlayerColor public_oe property

public Color PlayerColor
return Color

UnitName public_oe property

public string UnitName
return string