private void GetFoods() { foodTypes[0] = new FoodHash(this.wall); foodTypes[1] = new FoodDollar(this.wall); foodTypes[2] = new FoodAsterisk(this.wall); foodTypes[foodIndex].SetRandomPosition(snakeBody); }
private void GetFood() { food[0] = new FoodHash(wall); food[1] = new FoodDollar(wall); food[2] = new FoodAsterisk(wall); }
private void GetFoods() { food[0] = new FoodAsterisk(this.wall); food[1] = new FoodDollar(this.wall); food[2] = new FoodHash(this.wall); }