Skip to content
Snippets Groups Projects
Commit d8cfdffd authored by Mohamad Hilmi Rinaldi's avatar Mohamad Hilmi Rinaldi
Browse files

fix: console error "Failed to create agent"

parent 7bf780e1
Branches
Tags
No related merge requests found
......@@ -22,9 +22,10 @@ public class EnemyMovement : MonoBehaviour
void Update ()
{
if (!GameManager.isPause) {
nav.enabled=true;
if (enemyHealth.currentHealth > 0 && playerHealth.currentHealth > 0)
{
nav.enabled = true;
nav.SetDestination (player.position);
}
else
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment