Ejemplo n.º 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();
            }
        }
Ejemplo n.º 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();
            }
        }
Ejemplo n.º 3
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();
            }

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