private void CheckEnemyDamage(Collider2D otherCollider, Vector2 hitPosition) { var body = otherCollider.transform.GetComponentInChildren <Chara>(); if (body == null) { return; } if (false == attacker.IsEnemy(body)) { return; } if (false == pierceFlag) { End(); } attacker.SendDamage(body, new AttackInfo( attacker, skill.effectValue1, hitPosition, skill.knockbackPower )); EffectMan.Instance.PlayOneEffect(hitEffect, hitPosition, Quaternion.identity); }