Class ArrowEffect
Simple projectile attack. The projectile moves in straight line until it reaches the target.
Inherited Members
Namespace: AutoBattleFramework.Skills
Assembly: cs.temp.dll.dll
Syntax
public class ArrowEffect : RangedEffect
Methods
Attack(GameCharacter, Transform)
On attack method. Spawn a Projectile.
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. |
Overrides
OnHit(GameCharacter)
Calls BasicAttackDamage(BattleFormulas.DamageType, GameCharacter, GameCharacter) when the projectile hits the target.
Declaration
public override void OnHit(GameCharacter target)
Parameters
Type | Name | Description |
---|---|---|
GameCharacter | target | The target of the projectile. |
Overrides
SpawnProjectile()
Instantiate the Projectile and sets its properties.
Declaration
protected override Projectile SpawnProjectile()
Returns
Type | Description |
---|---|
Projectile | The Instantiated projectile |