Property | Type | Description | |
---|---|---|---|
IsSelectable | bool | ||
OnDie | System.Action | ||
OnHealthChanged | System.Action | ||
OnHit | System.Action |
||
OnRepairEnd | System.Action | ||
OnRepairStart | System.Action | ||
OnSelected | System.Action | ||
OnStatusChange | System.Action |
||
OnUpgraded | System.Action | ||
buildGameObjectsPerLevel | GameObject[] | ||
healthBarYMargin | float | ||
healthPerLevel | int[] | ||
level | int | ||
speedPerLevel | float[] | ||
spritesPerLevel | Sprite[] | ||
status | StatusType, |
Property | Type | Description | |
---|---|---|---|
animator | Animator | ||
lookRight | bool | ||
spriteRenderer | SpriteRenderer |
Method | Description | |
---|---|---|
OnTriggerEnter2D ( |
||
Select ( ) : void | ||
build ( ) : void | ||
changeStatus ( StatusType, newStatus ) : void | ||
decHealth ( int by ) : void | ||
loadDynamicGO ( GameObject go ) : void | ||
setInactive ( ) : void | ||
switchBackToOriginalColor ( ) : void | ||
upgradeDone ( ) : void |
Method | Description | |
---|---|---|
Awake ( ) : void | ||
Flip ( ) : void | ||
Start ( ) : void | ||
setValForAnimator ( string str, float val ) : void |
public OnTriggerEnter2D ( |
||
other | ||
return | void |
public changeStatus ( StatusType, newStatus ) : void | ||
newStatus | StatusType, | |
return | void |
public loadDynamicGO ( GameObject go ) : void | ||
go | GameObject | |
return | void |
protected setValForAnimator ( string str, float val ) : void | ||
str | string | |
val | float | |
return | void |
public GameObject[] buildGameObjectsPerLevel | ||
return | GameObject[] |