public override bool OnTick(Attackable target) { Collider[] enemiesCollider = Physics.OverlapSphere(target.transform.position, range); foreach (Collider c in enemiesCollider) { Attackable attackable = c.gameObject.GetComponent <Unit>(); if (attackable != null && isValidTarget(attackable)) { effect.Reset(); attackable.AddEffect(effect); } } return(true); }
public override void ApplyOnTarget(Attackable target) { appliedTime = 0f; target.AddEffect(this); }
public override void ApplyOnTarget(Attackable target) { target.AddEffect(this); }