public void Use(AbilityUseParams useParams)
 {
     player.Heal(config.GetExtraHealth());
     audioSource.clip = config.GetAudioClip(); // TODO find way of moving audio to parent class
     audioSource.Play();
     PlayParticleEffect();
 }
 private void ActivateHeal(AbilityUseParams useParams)
 {
     if (player)
     {
         player.Heal(config.GetHealth());
     }
     else if (enemy)
     {
         // TODO: add HEAL to enemy script
         enemy.TakeDamage(-config.GetHealth());
     }
 }
Пример #3
0
        private void DoSelfHeal(AbilityUseParams useParams)
        {
            float pointsToHeal = config.GetHealingAmount();

            player.Heal(pointsToHeal);
        }