Пример #1
0
 void InitSnake()
 {
     grid.Children.Add(_snake.Head.Rect);
     foreach (SnakePart snakePart in _snake.Parts)
     {
         grid.Children.Add(snakePart.Rect);
     }
     _snake.RedrawSnake();
 }
Пример #2
0
 void InitSnake() // metoda inicjująca węża
 {
     grid.Children.Add(_snake.Head.Rect);
     foreach (SnakePart snakePart in _snake.Parts)
     {
         grid.Children.Add(snakePart.Rect);
     }
     _snake.RedrawSnake();
 }