private void Awake() { _canMove = false; _snakeInput = new ControllerInput(); _snakeMover = new SnakeMover(_snakeInput, _gridManager, this); _snakeEater = new SnakeEater(_snakeSettings, this); }
public SnakeMover(ISnakeInput snakeInput, GridManager gridManager, Snake snake) { _snakeInput = snakeInput; _gridManager = gridManager; _snake = snake; }