Class OnHitEffect
Effect that is only applied when a GameCharacter attacks another.
Namespace: AutoBattleFramework.Skills
Assembly: cs.temp.dll.dll
Syntax
public abstract class OnHitEffect : ScriptableObject
Methods
InstantiateOnHitEffect()
Instantiate the OnHitEffect
Declaration
public virtual OnHitEffect InstantiateOnHitEffect()
Returns
Type | Description |
---|---|
OnHitEffect |
OnHit(GameCharacter, GameCharacter, Single)
When the defender receives an attack, the effects of this method are applied.
Declaration
public abstract void OnHit(GameCharacter defender, GameCharacter attacker, float damage)
Parameters
Type | Name | Description |
---|---|---|
GameCharacter | defender | GameCharacter recieving the attack. |
GameCharacter | attacker | GameCharacter that is attacking. |
Single | damage | Fixed amount of damage. |