示例#1
0
		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);
		}
示例#2
0
 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);
         }
     }
 }