Пример #1
0
        IEnumerator StatusRoutine()
        {
            float t = 1;

            while (true)
            {
                damageReceiver.Damage(fireElement.DPS);
                yield return(new WaitForSeconds(t));

                t += 1;
                if (t >= fireElement.duration)
                {
                    yield break;
                }
            }
        }
Пример #2
0
 void RetranslateDamage(float damage)
 {
     parentDamageReceiver.Damage(damage);
 }