public GameMiningController(GameMiningView view, MiningSceneViewDescription miningViewDescription, GameManager gameManager) { _view = view; _gameManager = gameManager; _ballPool = new BallPool(64, view.Ball); _gamePoleController = new GamePoleController(_view.HintAnimation, _view.GamePoleView, _ballPool, _view.BallSpritesViewDescription, miningViewDescription, _view); _gamePoleController.GameOver += GameOver; _view.EndGame.onClick.AddListener(OnEndGame); }
public GameProcess(Robots robot, GamePole pole) { this.robot = robot; this.pole = pole; controller = new GamePoleController(new GamePoleMoveUpCommand(pole), new GamePoleMoveDownCommand(pole), new GamePoleMoveRightCommand(pole), new GamePoleMoveLeftCommand(pole), new GamePoleSaveCommand(pole), new GamePoleRestoreCommand(pole)); }