public override void OnStart(StartState state) { if (state != StartState.Editor) { if (this.part.vessel != null) { part.force_activate(); ParkPosition = vessel.transform.position; SetAltitudeToCurrent(); instance = this; } } }
public void OnDestroy() { instance = null; }