protected override void Awake() { CommNetNetwork.Instance = this; CommNet = new BeaconCommNetwork(); if (HighLogic.LoadedScene == GameScenes.TRACKSTATION) { GameEvents.onPlanetariumTargetChanged.Add(OnMapFocusChange); } GameEvents.OnGameSettingsApplied.Add(ResetNetwork); ResetNetwork(); // Please retain this so that KSP can properly reset }
protected new void ResetNetwork() { CommNet = new BeaconCommNetwork(); GameEvents.CommNet.OnNetworkInitialized.Fire(); }