Class SwordEffect
Simple melee attack
Inherited Members
Namespace: AutoBattleFramework.Skills
Assembly: cs.temp.dll.dll
Syntax
public class SwordEffect : MeleeEffect
Methods
Attack(GameCharacter, Transform)
On attack method. For example, a simple melee attack will call the OnHit method.
Declaration
public override void Attack(GameCharacter ai, Transform shootingPoint)
Parameters
Type | Name | Description |
---|---|---|
GameCharacter | ai | Attacking GameCharacter |
Transform | shootingPoint | The transform from which the projectile will be launched. In this case it can be set to null. |
Overrides
OnHit(GameCharacter)
Declaration
public override void OnHit(GameCharacter target)
Parameters
Type | Name | Description |
---|---|---|
GameCharacter | target | The target of the character of projectile. |