We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f61b6eb commit e0e83c1Copy full SHA for e0e83c1
Assets/JCSUnity/Scripts/Actions/3D/AI/JCS_3DWalkAction.cs
@@ -219,11 +219,11 @@ public bool InRangeDistance()
219
switch (mWalkType)
220
{
221
case JCS_3DWalkType.SELF_IN_DISTANCE:
222
- maxDistance = mSelfDistance + mMaxOffDistance;
+ maxDistance = mSelfDistance + mMaxOffDistance + mAcceptRemainDistance;
223
break;
224
case JCS_3DWalkType.TARGET_CLOSEST_POINT:
225
case JCS_3DWalkType.TARGET_IN_RANGE:
226
- maxDistance = mRangeDistance + mAdjustRangeDistance + mMaxOffDistance;
+ maxDistance = mRangeDistance + mAdjustRangeDistance + mMaxOffDistance + mAcceptRemainDistance;
227
228
}
229
0 commit comments