private void designObjekter(int number, int speed, Affector[] aff) { affector = aff; for (int i = 0; i < number; i++) { Ding ding = new Ding(rand.Next(speed), rand.Next(100), rand.Next(255), rand.Next(10), this, affector); } }
private void designObjekter(int number, int speed) { objekter = new Ding[number]; for (int i = 0; i < number; i++) { Ding ding = new Ding(rand.Next(speed), rand.Next((int)numericUpDown1.Value), rand.Next(255), (int)sizeDrops.Value, this); objekter[i] = ding; } }
private void designObjekter(int number, int speed, Affector aff) { affector = aff; objekter = new Ding[number]; for (int i = 0; i < number; i++) { Ding ding = new Ding(rand.Next(speed), rand.Next(100), rand.Next(200), rand.Next(30), this, affector); objekter[i] = ding; } }