Ejemplo n.º 1
0
 public ShopUiLayerEnablingSystem(IContext <LobbyUiEntity> context, UiLayersStorage uiLayersStorage,
                                  ShopUiStorage shopUiStorage, LobbyLayoutSwitcher lobbyLayoutSwitcher, ShopUiSpawner shopUiSpawner)
     : base(context)
 {
     this.uiLayersStorage     = uiLayersStorage;
     this.shopUiStorage       = shopUiStorage;
     this.lobbyLayoutSwitcher = lobbyLayoutSwitcher;
     this.shopUiSpawner       = shopUiSpawner;
 }
Ejemplo n.º 2
0
        private void Awake()
        {
            ShopUiStorage shopUiStorageScript = FindObjectOfType <ShopUiStorage>()
                                                ?? throw new NullReferenceException(nameof(ShopUiStorage));

            sectionSpawner = FindObjectOfType <SectionSpawner>()
                             ?? throw new NullReferenceException(nameof(SectionSpawner));
            sectionPointerUiSpawner = FindObjectOfType <FooterPointerUiSpawner>()
                                      ?? throw new NullReferenceException(nameof(FooterPointerUiSpawner));
            scrollViewSmoothMovement = FindObjectOfType <ScrollViewSmoothMovementBehaviour>()
                                       ?? throw new NullReferenceException(nameof(ScrollViewSmoothMovementBehaviour));
            sectionsParentGo = shopUiStorageScript.shopSectionsParent;
        }
Ejemplo n.º 3
0
        private void Awake()
        {
            shopUiStorage = FindObjectOfType <ShopUiStorage>()
                            ?? throw new Exception(nameof(ShopUiStorage));
            productClickHandlerScript = FindObjectOfType <ProductClickHandlerScript>()
                                        ?? throw new Exception(nameof(ProductClickHandlerScript));

            // skinItemSpawner = new SkinItemSpawner();
            // warshipItemSpawner = new WarshipItemSpawner();
            // lootboxItemsSpawner = new LootboxItemsSpawner();
            // dailyPresentItemSpawner = new DailyPresentItemSpawner();
            softCurrencyItemSpawner       = new SoftCurrencyItemSpawner();
            hardCurrencyItemSpawner       = new HardCurrencyItemSpawner();
            warshipPowerPointsItemSpawner = new WarshipPowerPointsItemSpawner();
        }
        public PurchaseConfirmationWindowEnablingSystem(IContext <LobbyUiEntity> context,
                                                        LobbyEcsController lobbyEcsController, InGameCurrencyPaymaster inGameCurrencyPaymaster,
                                                        ShopUiStorage shopUiStorage, LobbyLayoutSwitcher lobbyLayoutSwitcher)

            : base(context)
        {
            this.lobbyEcsController  = lobbyEcsController;
            this.shopUiStorage       = shopUiStorage;
            this.lobbyLayoutSwitcher = lobbyLayoutSwitcher;
            softCurrencyPurchaseConfirmationWindowController = new SoftCurrencyPurchaseConfirmationWindowController(inGameCurrencyPaymaster);
            // skinPurchaseConfirmationWindowController = new SkinPurchaseConfirmationWindowController(inGameCurrencyPaymaster);
            // lootboxPurchaseConfirmationWindowController = new LootboxPurchaseConfirmationWindowController(inGameCurrencyPaymaster);
            // warshipPurchaseConfirmationWindowController = new WarshipPurchaseConfirmationWindowController(inGameCurrencyPaymaster);
            warshipPowerPointsPurchaseConfirmationWindowController =
                new WarshipPowerPointsPurchaseConfirmationWindowController(inGameCurrencyPaymaster);
        }
Ejemplo n.º 5
0
 private void Awake()
 {
     lobbyUiStorage = FindObjectOfType <LobbyUiStorage>()
                      ?? throw new NullReferenceException(nameof(LobbyUiStorage));
     uiLayersStorage = FindObjectOfType <UiLayersStorage>()
                       ?? throw new NullReferenceException(nameof(UiLayersStorage));
     shopUiStorage = FindObjectOfType <ShopUiStorage>()
                     ?? throw new NullReferenceException(nameof(ShopUiStorage));
     movingAwardsUiStorage = FindObjectOfType <MovingAwardsUiElementsStorage>()
                             ?? throw new NullReferenceException(nameof(MovingAwardsUiElementsStorage));
     warshipsUiStorage = FindObjectOfType <WarshipsUiStorage>()
                         ?? throw new NullReferenceException(nameof(WarshipsUiStorage));
     shopUiSpawner = FindObjectOfType <ShopUiSpawner>()
                     ?? throw new NullReferenceException(nameof(shopUiSpawner));
     lobbySceneSwitcher = FindObjectOfType <LobbySceneSwitcher>()
                          ?? throw new NullReferenceException(nameof(lobbySceneSwitcher));
     inGameCurrencyPaymaster = FindObjectOfType <InGameCurrencyPaymaster>()
                               ?? throw new NullReferenceException(nameof(inGameCurrencyPaymaster));
     textTooltip = FindObjectOfType <TextTooltip>()
                   ?? throw new NullReferenceException(nameof(TextTooltip));
 }
Ejemplo n.º 6
0
 public PurchaseConfirmationWindowDisablingSystem(IContext <LobbyUiEntity> context, ShopUiStorage shopUiStorage)
     : base(context)
 {
     this.shopUiStorage = shopUiStorage;
 }