#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; } }
// if concreteType is null we use the contract type from inject context public GetFromPrefabComponentProvider( Type componentType, IPrefabInstantiator prefabInstantiator) { _prefabInstantiator = prefabInstantiator; _componentType = componentType; }
public void Initialize( ITransferTargetsController controller, IPrefabInstantiator prefabInstantiator, Action onCloseCallback) { _prefabInstantiator = prefabInstantiator; _transferTargetsController = controller; _onCloseCallback = onCloseCallback; HideAlert(); HideRows(); if (Row1HeaderLabel != null) { Row1HeaderLabel.text = controller.Row1HeaderLabel; } if (Row2HeaderLabel != null) { Row2HeaderLabel.text = controller.Row2HeaderLabel; } if (TitleBarText != null) { TitleBarText.text = controller.TitleBarText; } if (TargetADropdown != null) { TargetADropdown.ClearOptions(); } if (TargetBDropdown != null) { TargetBDropdown.ClearOptions(); } }
// if concreteType is null we use the contract type from inject context public GetFromPrefabComponentProvider( Type componentType, IPrefabInstantiator prefabInstantiator, bool matchSingle) { _prefabInstantiator = prefabInstantiator; _componentType = componentType; _matchSingle = matchSingle; }
IProvider CreateProviderForType( Type contractType, IPrefabInstantiator instantiator) { Assert.That(contractType.IsInterface() || contractType.DerivesFrom <Component>()); return(new GetFromPrefabComponentProvider( contractType, instantiator)); }
IProvider CreateProviderForType( Type contractType, IPrefabInstantiator instantiator) { if (contractType == typeof(GameObject)) { return new PrefabGameObjectProvider(instantiator); } Assert.That(contractType.IsInterface() || contractType.DerivesFrom<Component>()); return new GetFromPrefabComponentProvider( contractType, instantiator); }
IProvider CreateProviderForType( Type contractType, IPrefabInstantiator instantiator) { if (contractType == typeof(GameObject)) { return(new PrefabGameObjectProvider(instantiator)); } Assert.That(contractType.IsInterface() || contractType.DerivesFrom <Component>()); return(new GetFromPrefabComponentProvider( contractType, instantiator)); }
public void Initialize( ICrewTransferController controller, IPrefabInstantiator prefabInstantiator, Action onCloseCallback) { _controller = controller; _onCloseCallback = onCloseCallback; _prefabInstantiator = prefabInstantiator; if (TitleBarText != null) { TitleBarText.text = _controller.TitleBarLabel; } if (DeparturesHeaderLabel != null) { DeparturesHeaderLabel.text = _controller.DeparturesHeaderLabel; } if (ArrivalsHeaderLabel != null) { ArrivalsHeaderLabel.text = _controller.ArrivalsHeaderLabel; } if (FlightsHeaderLabel != null) { FlightsHeaderLabel.text = _controller.FlightsHeaderLabel; } if (SelectedFlightPanel != null) { SelectedFlightPanel.Initialize(this, controller, _prefabInstantiator); } if (ArrivalPanel != null) { ArrivalPanel.Initialize( this, _prefabInstantiator, controller.ArrivalPanelLabels); } if (DeparturePanel != null) { DeparturePanel.Initialize( this, _prefabInstantiator, controller.DeparturePanelLabels); } if (EnroutePanel != null) { EnroutePanel.Initialize( this, _prefabInstantiator, controller.EnroutePanelLabels); } }
#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; } }
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; } }
public PrefabInstantiatorCached(IPrefabInstantiator subInstantiator) { _subInstantiator = subInstantiator; }
public PrefabGameObjectProvider( IPrefabInstantiator prefabCreator) { _prefabCreator = prefabCreator; }
public void Initialize(IKonstructor konstructor, IPrefabInstantiator prefabInstantiator) { _konstructor = konstructor; _prefabInstantiator = prefabInstantiator; HideAlert(); HideColumns(); HideSelectedShip(); if (AvailableAmountHeaderText != null) { AvailableAmountHeaderText.text = konstructor.AvailableAmountHeaderText; } if (BuildShipButtonText != null) { BuildShipButtonText.text = konstructor.BuildShipButtonText; } if (Column1HeaderText != null) { Column1HeaderText.text = konstructor.Column1HeaderText; } if (Column2HeaderText != null) { Column2HeaderText.text = konstructor.Column2HeaderText; } if (Column3HeaderText != null) { Column3HeaderText.text = konstructor.Column3HeaderText; } if (Column1Instructions != null) { Column1Instructions.text = konstructor.Column1Instructions; } if (Column2Instructions != null) { Column2Instructions.text = konstructor.Column2Instructions; } if (Column3Instructions != null) { Column3Instructions.text = konstructor.Column3Instructions; } if (RequiredAmountHeaderText != null) { RequiredAmountHeaderText.text = konstructor.RequiredAmountHeaderText; } if (ResourceHeaderText != null) { ResourceHeaderText.text = konstructor.ResourceHeaderText; } if (SelectShipButtonText != null) { SelectShipButtonText.text = konstructor.SelectShipButtonText; } if (SelectedShipHeaderText != null) { SelectedShipHeaderText.text = konstructor.SelectedShipHeaderText; } if (TitleBarText != null) { TitleBarText.text = konstructor.TitleBarText; } }