using TowerDefense.Agents; using TowerDefense.Targetting; using TowerDefense.Towers; using UnityEngine; namespace TowerDefense.Affectors { /// /// Abstract class that is used to apply s to s /// [RequireComponent(typeof(Targetter))] public abstract class PassiveAffector : Affector, ITowerRadiusProvider { /// /// Color of effect radius visualization /// public Color radiusEffectColor; public Targetter towerTargetter; /// /// Gets or sets the attack radius /// public float effectRadius { get { return towerTargetter.effectRadius; } } /// /// Gets the color used for effect radius visualisation /// public Color effectColor { get { return radiusEffectColor; } } /// /// Gets the targetter /// public Targetter targetter { get { return towerTargetter; } } } }