This commit is contained in:
CortexCore
2023-12-17 02:03:13 +08:00
parent 961ae8feb4
commit 11a8104c75
6 changed files with 79 additions and 56 deletions

View File

@@ -42,8 +42,8 @@ namespace NodeCanvas.Tasks.Conditions
if ( Vector3.Distance(agent.position, t.position) <= awarnessDistance.value ) {
if ( Physics.Linecast(agent.position + offset, t.position + offset, out hit, layerMask.value) ) {
if ( hit.collider != t.GetComponent<Collider>() ) {
return false;
report = hit.collider.name;
return false;
}
}
report = "Good Vigil Direct Hit";
@@ -80,7 +80,7 @@ namespace NodeCanvas.Tasks.Conditions
}
}
report = "Good Vigil";
report = "No Obstacle";
return true;
}