public Enemies(Transform transform)
    {

        if (textures == null)
        {
            textures = new ArrayList<Texture>();

            textures.add(new Texture("SSWVA1.png")); // Walking
            textures.add(new Texture("SSWVB1.png"));
            textures.add(new Texture("SSWVC1.png"));
            textures.add(new Texture("SSWVD1.png"));

            textures.add(new Texture("SSWVE0.png")); //Shooting
            textures.add(new Texture("SSWVF0.png"));
            textures.add(new Texture("SSWVG0.png"));

            textures.add(new Texture("SSWVH0.png"));//Dying
            textures.add(new Texture("SSWVI0.png"));
            textures.add(new Texture("SSWVJ0.png"));
            textures.add(new Texture("SSWVK0.png"));
            textures.add(new Texture("SSWVL0.png"));

            textures.add(new Texture("SSWVM0.png")); //Dead
        }

        if(mesh == null)
        {
            Vertex[] vertices = new Vertex[]{new Vertex(new Vector3f(-SIZEX, START, START), new Vector2f(TEX_MAX_X,TEX_MAX_Y)),
                                             new Vertex(new Vector3f(-SIZEX, SIZEY, START), new Vector2f(TEX_MAX_X,TEX_MIN_Y)),
                                             new Vertex(new Vector3f(SIZEX, SIZEY, START), new Vector2f(TEX_MIN_X,TEX_MIN_Y)),
                                             new Vertex(new Vector3f(SIZEX, START, START), new Vector2f(TEX_MIN_X,TEX_MAX_Y))};

            int[] indices = new int[]{0,1,2,
                                      0,2,3};

            mesh = new Mesh(vertices, indices);
        }

        this.transform = transform;
        this.material = new Material(textures.get(0));
        this.state = STATE_IDLE;
        this.random = new Random();
        this.health = MAX_HEALTH;
        this.canShoot = false;
        this.deathTime = 0;


    }