void InitSnake() { grid.Children.Add(_snake.Head.Rect); foreach (SnakePart snakePart in _snake.Parts) { grid.Children.Add(snakePart.Rect); } _snake.RedrawSnake(); }
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(); }