private GameObject CreateMapMarkerDSN() { GameObject markerObject = new GameObject(); AHMapMarker marker = markerObject.AddComponent <AHMapMarker> (); marker.SetUp(dsnRange, vessel, dsnBody.MapObject.trf, true, 1d); return(markerObject); }
private GameObject CreateMapMarkerRelay(Vessel relay) { double realSignal = relays [relay].endRelaySignalStrength; //AHUtil.GetREALSignal (relay.Connection.ControlPath); double range = AHUtil.GetDistanceAt0 (AHUtil.GetRange(vesselPower, relays [relay].endRelayPower)); GameObject markerObject = new GameObject(); AHMapMarker marker = markerObject.AddComponent <AHMapMarker> (); marker.SetUp(range, vessel, relay.mapObject.trf, false, realSignal); return(markerObject); }