Beispiel #1
0
 public void ActivateTrap(EnemyBaseScript enemy)
 {
     //if the trap is active
     if (IsActive)
     {
         //apply the damage to the enemy
         if (!enemy.IsSpawned)
         {
             if (enemy.isBoss)
                 enemy.ApplyDamage(0.01f * enemy.MaxHealth * Time.deltaTime);
             else
                 enemy.ApplyDamage(0.1f * enemy.MaxHealth * Time.deltaTime);
         }
     }
 }
 public void ApplySkillShotAttack(EnemyBaseScript enemy)
 {
     if (player.IsSkillShotActive)
     {
         //SkillShot Damage = Skill Shot Skill Multiplier x Player Attack Damage
         enemy.ApplyDamage(player.Skills.GetPlayerSkillShotDamage() * player.Skills.GetPlayerDamage());
         enemy.AddKnockback(enemy.transform.position - player.transform.position, Force);
         UnityEngine.Debug.LogWarning("Skill Shot Damage: " + (player.Skills.GetPlayerSkillShotDamage() * player.Skills.GetPlayerDamage()));
     }
 }