Exemplo n.º 1
0
 protected override void OnDisabled()
 {
     base.OnDisabled();
     VesselsToRemove.Clear();
     VesselsToUnload.Clear();
     GameEvents.onVesselRecovered.Remove(VesselRemoveEvents.OnVesselRecovered);
     GameEvents.onVesselTerminated.Remove(VesselRemoveEvents.OnVesselTerminated);
     GameEvents.onVesselDestroy.Remove(VesselRemoveEvents.OnVesselDestroyed);
 }
Exemplo n.º 2
0
        private void RemoveQueuedVessels()
        {
            foreach (var vessel in VesselsToRemove.Values)
            {
                KillVessel(vessel, true);
            }
            VesselsToRemove.Clear();

            foreach (var vessel in VesselsToUnload.Values)
            {
                KillVessel(vessel, false);
            }

            VesselsToUnload.Clear();
        }