1
This commit is contained in:
parent
dcd087211e
commit
09ccefb3cd
@ -555,7 +555,11 @@ void AndroidNewAI::UpdatePursuit()
|
||||
Human* myself = (Human*)owner;
|
||||
float distance = myself->GetPos().Distance(node_.target->GetPos());
|
||||
if (distance < GetAttackRange()) {
|
||||
#if 0
|
||||
UpdateAttack();
|
||||
#else
|
||||
ChangeToStateNewAI(ASE_Attack);
|
||||
#endif
|
||||
} else {
|
||||
if (node_.exec_frame_num > 100) {
|
||||
ChangeToStateNewAI(ASE_RandomWalk);
|
||||
|
Loading…
x
Reference in New Issue
Block a user