public SplitterSystem(Vector2 startPosition) { splitterParticles = new SplitterParticle[MaxParticles]; for (int i = 0; i < MaxParticles; i++) { splitterParticles[i] = new SplitterParticle(i, startPosition); //seed i och startposition vector2 } }
public SplitterSystem(Vector2 startPosition) { particles = new SplitterParticle[MAX_AMOUNT_PARTICLES]; for (int i = 0; i < MAX_AMOUNT_PARTICLES; i++) { particles[i] = new SplitterParticle(i,startPosition); } }