public bool CheckHitAttack(AttackHitInfo info, Collider to_collider, StageObject to_object) { if (attackHitChecker != null && !attackHitChecker.CheckHitAttack(info, to_collider, to_object)) { return(false); } return(true); }
public bool CheckHitAttack(AttackHitInfo info, Collider to_collider, StageObject to_object) { if (m_attackHitChecker != null && !m_attackHitChecker.CheckHitAttack(info, to_collider, to_object)) { return(false); } if (info.attackType == AttackHitInfo.ATTACK_TYPE.HEAL_ATTACK && to_object is Enemy) { Enemy enemy = to_object as Enemy; if (enemy.healDamageRate <= 0f) { return(false); } } return(true); }