Esempio n. 1
0
 public void Start()
 {
     if (!_hasInitStyles)
     {
         InitStyles();
         _localLogistics = new ManualLocalLogistics();
     }
 }
Esempio n. 2
0
 public void Start()
 {
     if (!_hasInitStyles)
     {
         InitStyles();
         _localLogistics  = new ManualLocalLogistics();
         _kolonyInventory = new KolonyInventory();
     }
 }
Esempio n. 3
0
        /// <summary>
        /// Implementation of <see cref="MonoBehaviour"/>.Start
        /// </summary>
        void Start()
        {
            // Hook into the ScenarioModule for Orbital Logistics
            var scenario = HighLogic.FindObjectOfType <ScenarioOrbitalLogistics>();

            if (!_hasInitStyles)
            {
                InitStyles();
                _localLogistics  = new ManualLocalLogistics();
                _kolonyInventory = new KolonyInventory();

                if (scenario != null)
                {
                    _orbitalLogisticsGui = new OrbitalLogisticsGuiMain_Scenario(scenario);
                }
            }

            // Setup tab labels
            _tabLabels = new[] { "Kolony Statistics", "Local Logistics", "Planetary Logistics", "Kolony Inventory", "Orbital Logistics" };
        }