You've already forked taptap2024_GJ_chidouren
16 lines
405 B
C#
16 lines
405 B
C#
namespace Game.Component.EnemyFSM_AI
|
|
{
|
|
public class Follow : EnemyFSMState
|
|
{
|
|
public override void OnEnter ()
|
|
{
|
|
this.Entity.AnimState.SetState (EnemyAnimStateType.Attack);
|
|
this.Entity.UpdateSpeedState (true);
|
|
}
|
|
|
|
public override void OnUpdate ()
|
|
{
|
|
this.SetAiTarget (MapContent.Instance.PlayerPosition);
|
|
}
|
|
}
|
|
} |