[박치영] 행동트리 로직 변경(몬스터 다수일 시 버그해결)
parent
c88a633391
commit
d1c9fffdb1
Binary file not shown.
Binary file not shown.
Binary file not shown.
|
@ -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();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue