public override void OnAwake() { Instance = this; GameEvents.onVesselChange.Add(onVesselChange); GameEvents.onVesselDestroy.Add(onVesselDestroy); GameEvents.onEditorPartEvent.Add(onEditorPartEvent); if (cycleStartTime <= 0) { cycleStartTime = Planetarium.GetUniversalTime(); } }
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>(); }
internal void start() { Instance = this; }
internal void Start() { Instance = this; backgroundConverters = WBIBackgroundConverter.GetBackgroundConverters(); }