Exemple #1
0
        void Start()
        {
            try
            {
                _gameModeFabric = new GameModelFabric();
                _gameModel      = _gameModeFabric.InitGameModel(_piratesCount);

                _controllersStorage = new ControllersStorage();
                _playerInput        = new PlayerPcInput();
                new InitGame(_controllersStorage, _gameModel, _playerInput);

                _controllersStorage.Initialize();
            }
            catch (GameException ex)
            {
                Debug.LogError(ex.Message);
                Application.Quit();
            }
        }