public virtual void Start(MySmallShip ship, MyDetectorConfiguration configuration) { m_ship = ship; m_detectInterval = configuration.DetectInterval; m_timeFromLastDetect = 0; m_isActive = false; m_detectorType = configuration.DetectorType; Range = configuration.Range; CanBeDisabledByRadarJammer = configuration.CanBeDisabledByRadarJammer; }
public virtual void Start(MySmallShip ship, MyDetectorConfiguration configuration) { m_ship = ship; m_detectInterval = configuration.DetectInterval; m_timeFromLastDetect = 0; m_isActive = false; m_detectorType = configuration.DetectorType; Range = configuration.Range; CanBeDisabledByRadarJammer = configuration.CanBeDisabledByRadarJammer; }
public void SetDetector(bool _Horizontal) { IsHorizontal = _Horizontal; if (_Horizontal) { _Next = new MyDetectorType(SlidePageLeft); _Prev = new MyDetectorType(SlidePageRight); } else { _Next = new MyDetectorType(SlidePageUp); _Prev = new MyDetectorType(SlidePageDown); } }