Exemple #1
0
    private IEnumerator PassiveResourceRegen()
    {
        while (resourceRegenSwitch)
        {
            yield return(null);

            ParentAlive.RestoreResource(Time.deltaTime * resourceRegen);
        }
    }
Exemple #2
0
    private IEnumerator PassiveHpRegen()
    {
        while (hpRegenSwitch)
        {
            yield return(null);

            ParentAlive.Heal(Time.deltaTime * hpRegen);
        }
    }