EssenceShared.Entities.Enemies.MeleeEnemy.IdleAction C# (CSharp) Method

IdleAction() protected method

protected IdleAction ( float dt ) : void
dt float
return void
        protected override void IdleAction(float dt) {
            List<Player> players = GetPlayers();
            if (players.Any()) {
                if (DistanceTo(players[0]) < SightRadius) {
                    Target = players[0];
                    ActionState = ActionState.MoveToAttack;
                }
            }
        }