private void CheckIfAttacked() { while (enemiesToAttack.Count > 0) { CharacterBaseController enemy = enemiesToAttack.Dequeue(); m_PlayerController.TakeDamage(enemy.attackEffect); instance.m_PlayerController.damageSource = enemy.displayName; } m_AttackablePlayer.CheckIfAttacked(); }
public override void OnTrapped(int trapStr, StaticEnums.StatusEffect effect) { m_CharacterBaseController.TakeDamage(effect, trapStr); }