update babe

This commit is contained in:
2026-06-04 17:49:04 +07:00
parent c545401b7a
commit b61b79c82e
60 changed files with 5164 additions and 82 deletions

View File

@@ -121,7 +121,7 @@ public class EnemyAI : MonoBehaviour
private NodeState ActionPatrol()
{
Debug.Log("Patrolling...");
// Debug.Log("Patrolling...");
agent.isStopped = false; // Đảm bảo NPC được phép di chuyển
agent.speed = moveSpeed * 0.5f; // Đi dạo nên đi chậm lại một chút
@@ -154,7 +154,7 @@ public class EnemyAI : MonoBehaviour
{
if (player == null) return NodeState.Failure;
Debug.Log("Chasing Player");
// Debug.Log("Chasing Player");
agent.isStopped = false;
agent.speed = moveSpeed; // Phục hồi tốc độ rượt đuổi
@@ -167,7 +167,7 @@ public class EnemyAI : MonoBehaviour
{
if (player == null) return NodeState.Failure;
Debug.Log("Focus and Shoot!");
// Debug.Log("Focus and Shoot!");
// Dừng NavMeshAgent lại để đứng bắn, tránh bị trượt
agent.isStopped = true;
@@ -196,7 +196,7 @@ public class EnemyAI : MonoBehaviour
{
if (laserPrefab == null || firePoint == null) return;
Instantiate(laserPrefab, firePoint.position, firePoint.rotation);
Debug.Log("Laser Shot!");
// Debug.Log("Laser Shot!");
}
#endregion