Example #1
0
    public void Attack()
    {
        if (timeCounter >= AttackRate - Mathf.Epsilon)
        {
            timeCounter = 0f;
            List <Damagable> targets = AttackArea.GetDamagables();

            for (int i = 0; i < targets.Count; i++)
            {
                targets[i].Damage(Damage);
            }
        }
    }