public void GetTarget(int _damage, Transform _boss) { if (Lect.DistanceCheck(transform, playerTransform, hitDistance)) { return; } if (!damageFlag) { // 플레이어에게 대미지 if (!playerHit.IsInvincible) { playerHit.FrontBackCheck(playerTransform, _boss); playerHit.SwordHit(1); if (Flat.Instance.GetGround()) { playerHit.BeHitSword(); } else { playerHit.BeHitAir(); } player.DecreaseHp(_damage); } if (!damageInterval.Equals(0) && !damageFlag) { damageFlag = true; StartCoroutine(TimeSpan()); } } }