1
This commit is contained in:
@@ -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();
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user