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