Beispiel #1
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));
 }
        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);
        }