Property | Type | Description | |
---|---|---|---|
baseHealth | int | ||
baseMoneyValue | int | ||
damageValue | int | ||
healthBarSize | Vector2 |
Property | Type | Description | |
---|---|---|---|
animator | Animator | ||
debuffs | List |
||
health | int |
Method | Description | |
---|---|---|
ApplyDebuffs ( ) : void |
Applies the debuffs to the EnemyBase
|
|
Damage ( int damage ) : void |
Reduces the damage the enemy takes by it's armor.
|
|
DamageOverTime ( int damage, float duration, float interval, StatusEffects status ) : void |
Damages the enemy over time. Updates a coroutine that flashes a color over the EnemyBase sprite.
|
|
DestroyThis ( ) : IEnumerator |
Called when this objects time has come to an end. Spawns a death int with the money the user get, returns enemy to pool, and cleans up references.
|
|
DirectDamage ( int damage ) : void |
Doesn't take armor into acount.
|
|
OnEnable ( ) : void |
Called when object is enabled.
|
|
ReduceArmor ( int amount, float duration ) : void |
Reduces the armor.
|
|
ReverseDirection ( float duration ) : void |
Makes the enemy move backwards along it's path.
|
|
Slow ( float percentage, float duration ) : void |
Slows the EnemyBase by a percentage. Percentage is 0-1 not 0-100 |
|
Update ( ) : void |
Called once per frame.
|
Method | Description | |
---|---|---|
AgentChangedNodes ( ) : void |
Is called when the Agnet changes Nodes.
|
|
AgentReachedDestination ( ) : void |
Is called when the Agnet reaches the destination.
|
|
InitAttributes ( ) : void |
Initializes the attributes.
|
Method | Description | |
---|---|---|
StartOrUpdateCoroutine ( StatusEffects enemyState, float duration ) : void |
A helper method that updates or starts the Flash coroutine.
|
public Damage ( int damage ) : void | ||
damage | int | Damage inflicted before armor reduction. |
return | void |
public DamageOverTime ( int damage, float duration, float interval, StatusEffects status ) : void | ||
damage | int | The total damage. |
duration | float | Duration of effect. |
interval | float | The interval to inflict damage. |
status | StatusEffects | The status of the enemy. |
return | void |
public DirectDamage ( int damage ) : void | ||
damage | int | Damage to inclict. |
return | void |
public ReduceArmor ( int amount, float duration ) : void | ||
amount | int | Amount to reduce. |
duration | float | Duration of effect. |
return | void |
public ReverseDirection ( float duration ) : void | ||
duration | float | Duration of effect. |
return | void |
public Slow ( float percentage, float duration ) : void | ||
percentage | float | Percent to slow. |
duration | float | Duration of effect. |
return | void |