public override void Hide() { if (mAntennaFragment != null) { mAntennaFragment.Dispose(); mAntennaFragment = null; } GameEvents.onVesselChange.Remove(OnVesselChange); base.Hide(); }
public override void Show() { mAntennaFragment = mAntennaFragment ?? new AntennaFragment(mSetAntenna); GameEvents.onVesselChange.Add(OnVesselChange); base.Show(); }