示例#1
0
 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
 }
示例#2
0
 protected new void ResetNetwork()
 {
     CommNet = new BeaconCommNetwork();
     GameEvents.CommNet.OnNetworkInitialized.Fire();
 }