Exemple #1
0
        public void Init(
            ISignalService signalService,
            IBuildingInfoContainer buildingInfoContainer)
        {
            _signalService         = signalService;
            _buildingInfoContainer = buildingInfoContainer;

            _fieldControl.InitField();
            InitFinanceControl();

            _buildingsControl.ProductionIsFinishedAction += ProductionIsFinished;

            _signalService.Receive <TryBuildSignal>()
            .Subscribe(TryBuild).AddTo(DisposeOnDestroy);
            _signalService.Receive <OnStartBuildingProductionSignal>()
            .Subscribe(OnStartBuildingProductionProgress).AddTo(DisposeOnDestroy);
        }