public override void OnEnter(BaseEnemy entity)
            {
                entity.AttackBase();
                var rnd = new Random();

                entity.Position =
                    new Vector2(rnd.Next(-50, 60) + entity.Position.x, entity.Position.y);
            }
 public override void Update(BaseEnemy entity, float delta)
 {
     entity.AttackTimer += delta;
     if (!(entity.AttackTimer >= entity.EnemyType.AttackRate))
     {
         return;
     }
     entity.AttackBase();
     entity.AttackTimer = 0;
 }