public void InitializeSnake(SnakeStartingBlocks snakeStartingBlocks) { _snakeStartingBlocks = snakeStartingBlocks; GridCell startingCell = _gridManager.GetFarFromEntitiesGridCell(); snake.SetStartPosition(startingCell.coordinate.x, startingCell.coordinate.y); PlaceSnakeOnGrid(startingCell); PaintSnake(); }
public void ChangeSnake(SnakeStartingBlocks newSnakeStartingBlocks) { _snakeStartingBlocks = newSnakeStartingBlocks; DestroyLastSnake(); GridCell startingCell = _gridManager.GetGridCellByCoordinate(snake.StartingX, snake.StartingY); PlaceSnakeOnGrid(startingCell); PaintSnake(); }