void Hit(Vector3 hitPos) { if (hit) { return; } hit = true; effectHit.Spawn(hitPos, Quaternion.identity); AudioManager.PlaySound(hitSound); if (attackInfo != null && tgtUnit != null) { tgtUnit.ApplyAttack(attackInfo); } ObjectPoolManager.Unspawn(thisObj); }