Пример #1
0
    public void OnTriggerStay(Collider other)
    {
        IDamageable unit = other.GetComponent <IDamageable>();

        if (unit == null || DamagingSelf(unit) || other.tag == "Illusion")
        {
            return;
        }
        unit.Slow(FrostBoltSlow, SlowDuration, SlowPercent);
        unit.Burn(FireBallBurn, BurnDuration, BurnPercent, damage * Time.deltaTime);
        unit.TakeDamage(damage * Time.deltaTime);
    }