Beispiel #1
0
 void Construct(RocketViewController.Factory rocketFactory,
                Hud.Factory hudFactory,
                List <SettingsSO.RocketSettings> rocketSettingList,
                SettingsSO.GameSettings gameSettings
                )
 {
     _rocketFactory         = rocketFactory;
     _hudFactory            = hudFactory;
     _rocketSettingsList    = rocketSettingList;
     _currentRocketSettings = rocketSettingList[0];
     _gameSettings          = gameSettings;
     ConfigureUpdatePosition();
 }
Beispiel #2
0
 void Construct(
     PlanetViewController.Factory planetFactory,
     SettingsSO.GameSettings gameSettings,
     List <SettingsSO.RocketSettings> rocketSettings,
     RocketAmmoPanel ammoPanel,
     LocalSaveController localSaveController,
     RocketViewController.Factory rocketFactory,
     AISystem aiSystem,
     MainMenuView mainMenuView
     )
 {
     _planetFactory              = planetFactory;
     _rocketFactory              = rocketFactory;
     _gameSettings               = gameSettings;
     _rocketSettings             = rocketSettings;
     _ammoPanel                  = ammoPanel;
     _aiSystem                   = aiSystem;
     _localSaveController        = localSaveController;
     _mainMenuView               = mainMenuView;
     Application.targetFrameRate = 60;
     ConfigureInput();
     SubscribeToUpdateAiSystem();
 }