private void InitializeRabbits() { Rabbits = new Rabbit[width,height]; growCell = new float[width,height]; for (int x = 0; x < width; x++) for (int y = 0; y < height; y++) Rabbits[x, y] = new Rabbit(CalculatePositionOfMatrixRabbit(x, y), rabbitSize); }
private void InitializeRabbits() { Rabbits = new Rabbit[width, height]; growCell = new float[width, height]; for (int x = 0; x < width; x++) { for (int y = 0; y < height; y++) { Rabbits[x, y] = new Rabbit(CalculatePositionOfMatrixRabbit(x, y), rabbitSize); } } }
private Renderable CreateRabbit(int x, int y) { return rabbits[x, y] = new Rabbit(rabbitImage, CalclatePosition(x, y)); }