Esempio n. 1
0
 public override void Init()
 {
     base.Init();
     MyMwcObjectBuilder_EntityDetector detectorBuilder = new MyMwcObjectBuilder_EntityDetector(Size, MyMwcObjectBuilder_EntityDetector_TypesEnum.Box);
     m_entityDetector.Init(null, detectorBuilder, null, WorldMatrix, m_scannerCriterias);
 }
Esempio n. 2
0
        public void Init(string hudLabelText, MyMwcObjectBuilder_EntityDetector objectBuilder, MyEntity parent, Matrix matrix, IEnumerable<IMyEntityDetectorCriterium> detectionCriterias)
        {
            InitCriterias(detectionCriterias);
            InitSensor(objectBuilder.EntityDetectorType, objectBuilder.Size);

            StringBuilder hudLabelTextSb = (hudLabelText == null) ? null : new StringBuilder(hudLabelText);

            Init(hudLabelTextSb, null, null, parent, null, objectBuilder);

            SetWorldMatrix(matrix);                        

            Save = false;
            m_isClosed = false;
            Visible = false;
            //NeedsUpdate = true;
        }