This commit is contained in:
CortexCore
2023-12-16 23:30:08 +08:00
parent 78216a3d47
commit 961ae8feb4
33 changed files with 369 additions and 148 deletions

View File

@@ -58,7 +58,7 @@ namespace NodeCanvas.Tasks.Actions
protected override void OnPause() { OnStop(); }
protected override void OnStop() {
if ( agent.gameObject.activeSelf ) {
if ( agent.gameObject.activeSelf && agent.isOnNavMesh) {
agent.ResetPath();
}
}