Пример #1
0
    public void Construct(IWeaponFactory weaponFactory,
                          GameUIViewFactory gameUiViewFactory,
                          BlockContainer blockContainer,
                          ILevelLoaderService levelLoaderService)
    {
        this.levelLoaderService = levelLoaderService;
        this.blockContainer     = blockContainer;

        ui = gameUiViewFactory.Create();

        weaponFactory.Load();

        weapon = weaponFactory.Create();

        Subscribe();

        ConfigureAttacksCount();

        SetupUI();
    }