Update:EnemyAI, KamikazeAI

This commit is contained in:
manhduyhoang90
2026-06-05 23:18:29 +07:00
parent 7dd6b9ac20
commit e92d06ed54
3 changed files with 101 additions and 48 deletions

View File

@@ -46,7 +46,13 @@ public class LaserProjectile : MonoBehaviour
Impact();
return;
}
// KIỂM TRA LAYER "GROUND"
if (other.gameObject.layer == LayerMask.NameToLayer("Ground"))
{
Debug.Log("<color=yellow>Laser hit GROUND layer.</color>");
Impact();
return;
}
// Phá hủy đạn nếu trúng tường, sàn nhà (mọi thứ không phải trigger khác)
if (!other.isTrigger)
{