public void Init(ClientCommandRunner runner, RewardWindow.Factory rewardWindow) { _runner = runner; _rewardWindow = rewardWindow; Button.onClick.AddListener(Execute); _timer = _interval; }
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; }