Exemple #1
0
 public void Dispose()
 {
     Enabled = false;
     if (steeringManager != null)
     {
         SteeringManagerProvider.RemoveInstance(shared.Vessel);
         steeringManager = null;
     }
 }
Exemple #2
0
        public void Dispose()
        {
            flightParameters.Clear();
            if (!VesselIsValid(currentVessel))
            {
                return;
            }

            UnBind();
            flightControls.Remove(currentVessel.rootPart.flightID);
            SteeringManagerProvider.RemoveInstance(currentVessel);
        }