Свойство | 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, |
Свойство | Type | Description | |
---|---|---|---|
animator | Animator | ||
lookRight | bool | ||
spriteRenderer | SpriteRenderer |
Méthode | Description | |
---|---|---|
OnTriggerEnter2D ( |
||
Select ( ) : void | ||
build ( ) : void | ||
changeStatus ( StatusType, newStatus ) : void | ||
decHealth ( int by ) : void | ||
loadDynamicGO ( GameObject go ) : void | ||
setInactive ( ) : void | ||
switchBackToOriginalColor ( ) : void | ||
upgradeDone ( ) : void |
Méthode | Description | |
---|---|---|
Awake ( ) : void | ||
Flip ( ) : void | ||
Start ( ) : void | ||
setValForAnimator ( string str, float val ) : void |
public OnTriggerEnter2D ( |
||
other | ||
Résultat | void |
public changeStatus ( StatusType, newStatus ) : void | ||
newStatus | StatusType, | |
Résultat | void |
public loadDynamicGO ( GameObject go ) : void | ||
go | GameObject | |
Résultat | void |
protected setValForAnimator ( string str, float val ) : void | ||
str | string | |
val | float | |
Résultat | void |
public switchBackToOriginalColor ( ) : void | ||
Résultat | void |
public GameObject[] buildGameObjectsPerLevel | ||
Résultat | GameObject[] |
protected SpriteRenderer spriteRenderer | ||
Résultat | SpriteRenderer |