예제 #1
0
파일: EnroutePanel.cs 프로젝트: jhxmt/MKS
#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;
            }
        }
예제 #2
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;
     }
 }