Esempio n. 1
0
 public LocationController(UnitView.Factory unit_factory,
                           Settings settings,
                           LocationModel location_model,
                           SignalBus signal_bus,
                           IInputController input_controller)
 {
     this._signal_bus       = signal_bus;
     this._location_model   = location_model;
     this._input_controller = input_controller;
     this._unit_factory     = unit_factory;
     this._settings         = settings;
     this._camera_bounds    = Camera.main.OrthographicBounds();
 }
Esempio n. 2
0
 public void Init(
     GameSceneManager scene, ClientCommandRunner runner, ClientStateService state,
     LevelService service, UnitViewModel.Factory unit, UnitView.Factory view, RewardWindow.Factory winWindow, LoseWindow.Factory loseWindow
     )
 {
     _scene        = scene;
     _update       = runner.Updater;
     _state        = state;
     _service      = service;
     _unit         = unit;
     _view         = view;
     _rewardWindow = winWindow;
     _loseWindow   = loseWindow;
 }