public void ApplyElementalDamage(int amount, ElementalType type) { if (EnemyState == State.Dead) { return; } amount = Mathf.RoundToInt(amount * Enemy.GetElementalWeakness(type)); ElementalDamageNumberSpawner.SpawnNumber(amount, type.DamageColor); CurrentHealth.Value -= amount; if (CurrentHealth.Value <= 0) { Die(false); } else { MyAnimator.SetTrigger("Flinch"); } }