protected override void OnUnregister() { base.OnUnregister(); ContractConfigurator.OnParameterChange.Remove(new EventData <Contract, ContractParameter> .OnEvent(OnParameterStateChange)); foreach (ContractBehaviour behaviour in behaviours) { behaviour.Unregister(); } GameEvents.onVesselChange.Remove(new EventData <Vessel> .OnEvent(OnVesselChange)); OnStateChange.Remove(new EventData <State> .OnEvent(SelfStateChanged)); }