Beispiel #1
0
        public override void OnAwake()
        {
            Instance = this;
            GameEvents.onVesselChange.Add(onVesselChange);
            GameEvents.onVesselDestroy.Add(onVesselDestroy);
            GameEvents.onEditorPartEvent.Add(onEditorPartEvent);

            if (cycleStartTime <= 0)
            {
                cycleStartTime = Planetarium.GetUniversalTime();
            }
        }
Beispiel #2
0
        public override void OnAwake()
        {
            Instance = this;
            GameEvents.onVesselChange.Add(onVesselChange);
            GameEvents.onVesselDestroy.Add(onVesselDestroy);
            GameEvents.onEditorPartEvent.Add(onEditorPartEvent);

            backgroundConverters = new Dictionary <string, WBIBackgroundConverter>();

            if (cycleStartTime <= 0)
            {
                cycleStartTime = Planetarium.GetUniversalTime();
            }
        }
        public override void OnAwake()
        {
            Instance = this;
            GameEvents.onVesselChange.Add(onVesselChange);
            GameEvents.onVesselDestroy.Add(onVesselDestroy);
            GameEvents.onEditorPartEvent.Add(onEditorPartEvent);

            if (cycleStartTime <= 0)
            {
                cycleStartTime = Planetarium.GetUniversalTime();
            }

            originalResourceCosts = new Dictionary <string, float>();
        }
Beispiel #4
0
 internal void start()
 {
     Instance = this;
 }
Beispiel #5
0
 internal void Start()
 {
     Instance             = this;
     backgroundConverters = WBIBackgroundConverter.GetBackgroundConverters();
 }