Update:EnemyAI, KamikazeAI
This commit is contained in:
@@ -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)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user