Ejemplo n.º 1
0
    public GameModel
        (IPlayer player,
        IBallController ballController,
        IInputController input,
        ILevelConfiguration levelConfiguration,
        IControllerConfig controllerConfig,
        IGameCicle gameCicle,
        IBonusManager bonusManager,
        IFactory <Vector3, IBlock> blockFactory,
        IScoreController scoreController,
        ILifeController lifeController)
    {
        Player             = player;
        BallController     = ballController;
        Input              = input;
        LevelConfiguration = levelConfiguration;
        ControllerConfig   = controllerConfig;
        GameCicle          = gameCicle;
        BonusManager       = bonusManager;
        BlockFactory       = blockFactory;
        ScoreController    = scoreController;
        LifeController     = lifeController;

        SetListeners(true);

        GoToStart();
    }
Ejemplo n.º 2
0
 public KeyboardInput(IGameCicle gameCicle)
 {
     GameCicle = gameCicle;
     SetListeners(true);
 }