Пример #1
0
#pragma warning restore 0649
#pragma warning restore IDE0044
        #endregion

        public void Initialize(
            TerminalWindow window,
            ICrewTransferController controller,
            IPrefabInstantiator prefabInstantiator)
        {
            _controller         = controller;
            _labels             = controller.SelectedFlightPanelLabels;
            _prefabInstantiator = prefabInstantiator;
            _window             = window;

            if (DepartureHeaderLabel != null)
            {
                DepartureHeaderLabel.text
                    = _labels.DepartureHeaderLabel;
            }
            if (ArrivalHeaderLabel != null)
            {
                ArrivalHeaderLabel.text
                    = _labels.ArrivalHeaderLabel;
            }
            if (EconomySeatsHeaderLabel != null)
            {
                EconomySeatsHeaderLabel.text
                    = _labels.EconomySeatsHeaderLabel;
            }
            if (LuxurySeatsHeaderLabel != null)
            {
                LuxurySeatsHeaderLabel.text
                    = _labels.LuxurySeatsHeaderLabel;
            }
        }
Пример #2
0
#pragma warning restore 0649
#pragma warning restore 0169
#pragma warning restore IDE0044
        #endregion

        public void Initialize(
            TerminalWindow window,
            IPrefabInstantiator prefabInstantiator,
            ActionPanelLabels labels)
        {
            _window = window;
            if (HeaderLabel != null)
            {
                HeaderLabel.text = labels.HeaderLabel;
            }
            if (InstructionsLabel != null)
            {
                InstructionsLabel.text = labels.InstructionsLabel;
            }
        }
Пример #3
0
        public void Initialize(TerminalWindow window, FlightSelectorLabels labels)
        {
            _labels = labels;
            _window = window;

            if (DepartureHeaderLabel != null)
            {
                DepartureHeaderLabel.text = labels.DepartureHeaderLabel;
            }
            if (ArrivalHeaderLabel != null)
            {
                ArrivalHeaderLabel.text = labels.ArrivalHeaderLabel;
            }
            if (Toggle != null)
            {
                Toggle.group = window.FlightsListToggleGroup;
            }
        }
Пример #4
0
 public void Initialize(
     TerminalWindow window,
     IPrefabInstantiator prefabInstantiator,
     ActionPanelLabels labels)
 {
     _prefabInstantiator = prefabInstantiator;
     _window             = window;
     if (DisembarkButtonLabel != null)
     {
         DisembarkButtonLabel.text = labels.ActionButtonLabel;
     }
     if (HeaderLabel != null)
     {
         HeaderLabel.text = labels.HeaderLabel;
     }
     if (InstructionsLabel != null)
     {
         InstructionsLabel.text = labels.InstructionsLabel;
     }
     if (WarningsHeaderLabel != null)
     {
         WarningsHeaderLabel.text = labels.WarningLabel;
     }
 }