public void addPart(string key, BulletPart part) { objLoader.objLoad(); part.setVertex(objLoader.vertex, objLoader.vertexIndex.Count); parts.Add(key, part); partCount++; }
public Bullet() { obj = true; movement = new Movement(); texture = new Texture("Recursos/negro2.jpg"); objLoader = new ObjLoader("Recursos/Bowling.obj"); BulletPart bulletPart = new BulletPart(); init(); addPart("bulletPart", bulletPart); }