You've already forked taptap2024_GJ_chidouren
18 lines
456 B
C#
18 lines
456 B
C#
using XFFSM;
|
|
|
|
namespace Game.Component.EnemyFSM_AI
|
|
{
|
|
public class Idea : EnemyFSMState
|
|
{
|
|
public override void OnEnter ()
|
|
{
|
|
this.Entity.AnimState.SetState (EnemyAnimStateType.Idle);
|
|
if (!this.Entity.HasSafeArea)
|
|
{
|
|
this.Entity.EndAttack ();
|
|
}
|
|
//角色进入idea状态时 重置状态
|
|
this.SetAiTarget (this.Entity.CreatePos);
|
|
}
|
|
}
|
|
} |