[박치영] 행동트리 로직 변경(몬스터 다수일 시 버그해결)

main
pcyoung 2023-12-23 22:15:28 +09:00
parent c88a633391
commit d1c9fffdb1
5 changed files with 6 additions and 5 deletions

Binary file not shown.

View File

@ -31,9 +31,9 @@ EBTNodeResult::Type UT_FindNextPatrolPoint::ExecuteTask(UBehaviorTreeComponent&
if(SetPathLocation()) if(SetPathLocation())
{ {
if(bShouldReverse) // if(bShouldReverse)
DecrementPathIndex(); // DecrementPathIndex();
else // else
IncrementPathIndex(); IncrementPathIndex();
} }
else else
@ -75,7 +75,8 @@ void UT_FindNextPatrolPoint::IncrementPathIndex()
if(bShouldLoop) if(bShouldLoop)
{ {
bShouldReverse = true; bShouldReverse = true;
DecrementPathIndex(); BlackboardComponent->SetValueAsInt(BlackboardKey_PatrolIndex.SelectedKeyName, 0);
//DecrementPathIndex();
} }
} }
} }